Hi
import { showFlag } from '@forge/bridge';
export const postfunction = ({ issue, transition: { from, to }, configuration: {message} }) => {
console.log(`PostFunction for issue ${issue.key} for transition from status ${from.id} to ${to.id} with config message: ${message}`);
const flag = 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,
});
flag.close();
};
I am developing a Forge app that displays a message when an issue transitions to another status. While I can see the message in the console when using console.log, I am unable to display it using ShowFlag.
Since this is a Custom UI app, could you assist me in ensuring the message appears correctly? Any guidance would be greatly appreciated.
Kind regards
Tiisetso Monatisa