I would like to reproduce the functionality that Jira development integration plugin provides: when branch or pull request is created in Bitbucket, web panel immediately pops up and shows branch/pull request info.
How can I catch such events in Javascript? more specifically, I want to do it from web item or web panel I develop with Scriptrunner/groovy. I am aware of event listeners I can implement this way, but cannot yet figure out how to let web page know that I have caught an event and want the page to actually display something.
While I am interested primarily in events from Bitbucket, the question is actually pretty generic - I want to be able to reproduce such behavior for any external application - build server, or something like that.
Many thanks.
Sergey.