Create UI after JIra Event Trigger

Hello, I was wondering if it is possible or not to create UI for example a pop-up using ModalDialog after a Jira event e.g. issue created or comment made.
I have tried to mix them like this, but nothing seems to be happening. I want to make changes based on a user comment, but have a pop-up asking them to confirm if they would like the change to occur or not.

const App = () => {
	 
	const [isFormOpen, setFormOpen] = useState(true);
	console.log("Why doesn't anything popup?");
	return (
	<ModalDialog header="Test" onClose={() => setFormOpen(false)}> </ModalDialog>
	);
};
export async function run(event, context) {
	const run = render(<App/>);
}
1 Like

Hi @ChrisChan ,

Right now there is no such possibility for UI to appear after an event but thank you for this question because we will take it into consideration and maybe in the future it will be possible.

Maybe you could consider performing something in exchange:

Try to catch event through the web trigger (ex. added comment) and save this info in storage. Then, if someone opens the application, you could acknowledge it and show the modal on basis of that.