Hi all
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