Forums

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

I want to transition based on a checkbox being checked, else, transition to a different status

Darren Weaver
Contributor
January 24, 2019

User will check a checkbox called "skip HLE" as the only checkbox option.  If the user checks this button I'd like the issue to transition to a specific status upon checking the box.  Is that possible without having to custom script it?

1 answer

0 votes
Tarun Sapra
Community Champion
January 24, 2019

Hello @Darren Weaver

You would need to use a plugin for it. Out of the box it's not doable to check the custom field value and then proceed to a specific transition.

You can use the built-in postfunction/listener "fast track the issue" (from Script runner paid plugin) and the condition for this post-function can be whether the custom field is checked or not.

Darren Weaver
Contributor
January 24, 2019

Thanks Tarun, we have scriptrunner (I mean, who doesn't :)).  What would that look like in the script if I'm using a checkbox- do I use the example of "has select list value equal to"

 

 

@A, can you help here?

Tarun Sapra
Community Champion
January 25, 2019

Hello @Darren Weaver

Please see here

https://community.atlassian.com/t5/Jira-questions/Using-Groovy-Script-Runner-how-do-I-validate-Checkboxes/qaq-p/218836

This is how you validate the checkbox, now you can have the validation condition in the "condition" section of the post-function called "Fast track transition an issue" and if the condition is met then you can transition the isssue otherwise the post-function will fail and your issue will be transitioned to the original destination step. So in this, way you can choose which status to go to based on the checkbox value.

Suggest an answer

Log in or Sign up to answer