Whenever an issue is created or edited, JIRA pops up a message in the top right corner, like below:
image2017-1-3 23:30:24.png
I want to either display my own message in addition to that or modify the existing one based on the value of a scripted field. My scripted field is an AUI message (following the instructions here https://scriptrunner.adaptavist.com/4.3.0/jira/recipes/scriptfields/informationMessage.html), and it shows up perfectly on the issue. I just need the same message in a popup alert as well, on issue create and issue update.
I tried using UserMessageUtil in a scripted listener, but that does not work. It seems like UserMessageUtil is only meant for validators.
What is the recommended approach for this?