Hello Community,
Thank you for taking the time to look at my post!
I am working in JIRA CLOUD and I would like to create a custom Alert that will be execute when an issue is updated (I am using a Listener).
The use case is:
User updates a certain field. This triggers an issue update even which is captured by a listener I created. This listener has code that will transition the issue from X to Y status (this works fine).
My gap is:
When the transition code runs in the listener I will check for a status code of 204 (success). If this statement is true then I want to add code that will display an Alert with a custom message "Your issue was transitioned from status X to Y because of _____".
In JIRA Server/DC you can use UserMessageUtil for the above but for CLOUD I cannot find a similar library.
Does anyone have any insight on how I can add this functionality into my Listener code.
Thank you!
-Roberto
Hi @Roberto Luces ,
I can confirm that there is no way to display a popup dialogue showing when listener are being triggered with ScriptRunner for Jira Cloud as Atlassian does not provide any Rest API's for displaying popup dialogues and ScriptRunner for Jira Cloud can only use the Rest API's which Atlassian provides.
However, you could work around this by having your script call the Add Comment API to add a comment when the listener triggered and I can confirm we have an example of using this API here which can be used as a reference to see how to use this API.
Alternatively, you could work around this by having your script call the Send notification for issue API to to notify via email and I can confirm we have an example of using this API here.
I hope that answered your question.
Regards,
Amirul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Liam Green ,
No specific reason as to why Listener over automation other then the existing functionality I mentioned above might expand further in the same listener and I wanted to see if there is something like UserMessageUtil that I can add to other ScriptRunner scripts as well.
If I may ask, how would you achieve the above using Automation?
Thank you,
-Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.