Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Update Listener identify which Transition was triggered?

David Harkins
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2023

Is there a way to identify the name or an identifier of the transition that triggered the Issue Updated Listener?

I can determine the change in status, but have a number of transitions going into one status and we need to take different actions for each.

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2023

Not directly.

Listeners are triggered by events, not transitions.  Transitions all fire events though, so listeners look at those.

If your workflow were to fire different events for each transition, then yes, you can do this easily -  the event object passed into your script will contain the type of event fired.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events