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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

300 views 3 11
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