I have written a script that I want to run when the user triages an issue. When the user presses the triage button on the triage screen in Jira. Below is the mentioned button.
I want to update the Due Date.
Where can I add the listener for this in Script runner? Any ideas? Thanks a lot
Listeners with SR are done via Admin -> Scriptrunner -> Listeners.
I am not sure you want a listener here though. Listeners react to events, not actions in the workflow directly. A listener would only work in this case if your "triage" transition fires an event of the type the listener is listening for.
I would suggest looking at a post-function on the triage transition. They're easier to write than listeners and you know that they will be, and only be, run when the button is clicked.
You're right. A listener will not work in this case. How do I add post function to the triage transaction? I hace a script ready to add and is working in SR console but not finding a place to put it to run. Would you please mention where should I add post function for it? Thanks
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events