Using the ScriptRunner Fast-trak an issue to perform a hidden transition during the Create Issue Transition, does not produce an Action.
I have a transition, named 911, going from the initial status, named Intake, of the Create Issue transition to the status, named 911, when a user responds Yes to the multi-select custom field, 911, as shown below.
I use the cfValues['911'] == 'Yes' condition in the script. The Action is transition 911 (721). Previewing the script shows:
ScriptRunner workflow function - Fast-track transition an issue (condition apply).
Action: None will be applied
Note that this should go after the Fire Event function.
The post function is last in the list and below the Fire a Create Issue Event. The workflow diagram showing this transition is
Can someone help me understand what I am doing correctly, or is this a bug in ScriptRunner?
I am using ScriptRunner 5.1.6 in JIRA Server 7.3.0'
Thank you for helping me.
So if I understand right the post function is on the Create Issue step and you want to fast track transition the issue to status 911 (which actually mean to skip the Intake status).
So your condition should be
'Yes' in cfValues["911"]*.value (If the name of the Multi Select List is 911)
To be honest is weird the fact that when you preview the Action appears as None.
Can you please check the logs for any errors ?
And also can you please check in the Workflow overview, when you click Diagram if there is another action with the name 911 and a different than the 721 id ?
kind regards, Thanos
Yes, your understanding is correct. I need to clarify that the Yes option is an InTENSO Dynamic Forms - Dynamic Checkboxes field.
|InTENSO [Dynamic Forms] - Dynamic Checkboxes|
I use this type of field to show additional Related Fields when the Yes box is selected and is part of the Dynamic Forms plugin.
Also, I did verify only one transition in the workflow for 911 exists. The transition is from the Intake step to the 911 step for the 911 request.
Regarding the log errors, when would I see the log errors and are you referencing the atlassian.jira.log file? Please clarify this for me so I can provide you with the data you need to help me.
thanks for clarifying the type of the custom field. I am not sure that the condition will work as is with InTENSO checkboxes.
But the logs will actually tell the truth. So after you reproduced the scenario you can check the atlassian-jira.log at https://confluence.atlassian.com/jira063/where-are-the-application-server-logs-683542381.html
or you can use the ScriptRunner built in script -> View server logs.
The role of IT professionals has become increasingly difficult over the last decade. Our organizations work in an increasingly software-powered world and IT professionals are expected to not...
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