Transition condition: restrict transition based on custom field value Edited

Hello, I have a custom field called "Code Reviewed" with a value of "Yes" or "No", defaulting to "No".  I want to prevent a transition from occuring based on the value of the custom field.  I don't want to hide the transition, but I don't want it to work until the "Code Reviewed" value is set to "Yes".

My pertinent workflow:

Status: Dev Completed
--- Transition: DEV Complete
Status: In QA

How can I add a condition to the "DEV Complete" transition that checks the value of my custom field and only allows the workflow to advance when "Code Reviewed" value is set to "Yes"?

1 answer

1 vote
Josh Steckler Community Champion Jun 20, 2017

Rather than a yes/no drop down select, you could make the Code Reviewed a Checkbox with only one option: yes.

Then use a workflow validator to require that field be set to execute that transition.

Using conditions will always hide the transition until the criteria is properly met.


Thanks Josh, the only problem I have with your suggestion is that the Yes/No is already in production and we have hundreds of issues that already have a value "No". 

I will see it I can get the workflow validator you mentioned to work with the yes/no control. 

Josh Steckler Community Champion Jun 20, 2017

Yes retirement of custom fields is always a problem. Another thing you could try is to "disable" the No option on the custom field and remove the default so that the old data would remain, but you could implement the new behavior for future issues.

Thanks for the suggestion, much appreciated :)

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,151 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot