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 Sign up to answer
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

238 views 6 0
Join discussion

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