Does forge/bridge events work?

I’ve been trying to use https://developer.atlassian.com/platform/forge/apis-reference/ui-api-bridge/events/ between CustomUI modules in my app. I have a jira page and an issue context module. I’ve tried using the same resource for both modules and different resources, however when I emit an event from the page UI in one browser tab I do not see the event in the issue context UI in another tab.

I do see the event in the same UI on the same tab, so the events seem to just be local.
I do not see the event reflected in the same UI on different tabs.

This is the same app, same user.

The doco says “The events API allows you to subscribe, unsubscribe, and emit events. This will allow different Custom UI extensions within the same app to communicate with each other.”

Am I understanding this correctly?

Cheers,
Peter

1 Like

Hi Peter,

The Forge view bridge events API only supports communication within the same top-level browsing context (usually a browser tab). I hope that helps, I’ll make a note to revisit the documentation for clarity.

Thanks,
Timothy

1 Like

Thanks @TimothyVanDyke, that helps explain what I see.

May I suggest that a message buss for front end interaction would be very useful. For example if a colleague deletes a thing from the backend (say sql db) how do we notify the other users/pages that an update has happened? Think confluence pages flagging that a new version is published…

We can’t implement a message buss without breaking out of Atlassian platform or polling the backend for changes. Polling would not be optimal because of limits placed on backend resources.