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.
**question**
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
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.