ShowFlag bridge method not working in JSM?

Hi all :wave:

I was wondering if the bridge showFlag bridge method is supposed to be working in JSM portal?

According to the documentation it seems it should, but it doesn’t seem to be working for me?
The same code in a jira:issueActivity: Forge app seems to work, but not in a jiraServiceManagement:portalHeader module.

Not sure if related but when triggering the showFlag I’m getting this console warning message:

index.js:6 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.atlassian.com/metal/ingest with MIME type application/json. See Chrome Platform Status for more details.

Same code from the doc example:

import { showFlag } from '@forge/bridge';
import Button from '@atlaskit/button';
...

<Button
  appearance='primary'
  onClick={() => {
    console.log('button clicked!');

    showFlag({
      id: 'success-flag',
      title: 'Hello World!',
      type: 'info',
      description: 'Here is a flag body description.',
      actions: [
        {
          text: 'Flag action',
          onClick: () => {
            console.log('flag action clicked');
          },
        },
      ],
      isAutoDismiss: true,
    });
  }}
>
  Show Flag
</Button>

Is this a known issue? Or expected?

Best,

David

1 Like

Hi @anguila,

You are right, the showFlag bridge is currently not working in JSM (thanks for raising this).

From my tests, this only affects the customer portal views. The flags work when used in the jiraServiceManagement:queuePage module or when used in the standard view of a Service Project.

I’ve raised this ticket about it:
https://ecosystem.atlassian.net/browse/FRGE-1221

FYI the CORB warning in the console is not related to this problem.

Thanks,
Caterina

3 Likes

Ok, thanks for raising the ticket! I’ll keep an eye on it, I’m ditching the flag for now…

Best,

David