You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.