How can I update Issue Glance Target Web Panel content based on a request?

Hello,

As the title says I want to update the issue glance web panel content described initially in atlassian-connect.json on a request or a specific webhook (I am building a Connect app).

If I receive a specific request I need to change the glance content and keep it that way until user clicks on a button for example (then revert back to default glance content).

I saw that you can change the status of a glance but I don’t know if that is exactly what I need to do to change its content (web-panel or displayed content on that web panel) as well.

Any help would be appreciated!
Thank you!

Hello,

For anyone interested, my solution for this was when the popup (window.open) is opened I wait for it to close on an interval (1 second) and when it closes I clear the interval and make a request if my apiKey was set or not.

If API key is set I can change the issue glance content.

I hope this is regarded as an acceptable solution.

Regards

Thanks for sharing your solution.