Script runner - Builtin Script Listener - Fast-track transition an issue
I am trying to set up a Builtin Script Listener to "fast-track transition an issue". I have read all the blogs I can find but nothing tells me how the listener is triggered or how to test it.
I am using...
JIRA v5.2.4.1#846-sha1:7ae4d02
Script runner Version: 2.1.12
I am using the Generic event and a condition to check the issue status and custom field value...
Event - "Generic Event"
Projects - "Project Name"
Condition - return ( issue.getStatusObject().getName()=="In Progress" && cfValues["zz6 - CPE email"]?.getValue() == "Yes" )
Action - "custom transition"
For the condition I have also tried
issue.getStatusObject().getName() == "In Progress" && "custom field" == "value"
I am using a default notification scheme.
There is no clear documentation on how the condition should be written i.e use of " or ' names of customfields or JIRA ID
Also using assert to test does not give an error even though something is clearly not working.
Any help / advise would be appreciated.
Thanks