Set condition on custom field using select list

Hello,

I'm on Jira 6.0.8.

I created a custom field using a select list with 5 values. If user chooses 1 of the 5 values, "D", then the issue should follow a different workflow. If the user chooses on of the other 4 values (A+, A, B or C), there should be no change to workflow.

I am looking for guidance on how best to configure this requirement.

Thank you,

Lynn

2 answers

1 accepted

Hi Nic,

I figured it out, thanks!

Lynn

0 vote

Simple answer is that you can't do it.

The workflow an issue goes through is determined entirely and only by the issue type of the issue in the project. The other fields are utterly irrelevant. If you want to change workflow, you have to change the issue type. End of story.

You *could* try to wedge this in - find/write a listener that will pick up edits, catch "select list changes from something to D" and try to change the issue type, but that is not an easy task, and I've yet to see changes to issue type automated and working in all but the most simple of cases where the settings for the issues are identical, including using the same workflow!

Your best option is probably to merge the workflow. Create two paths through the workflow, and use conditions that say "you can only see transitions in route 1 if "D" is set" and another to say "you can only see transitions in route 2 if "D" is NOT set"

Hello Nic,

Actually the last paragraph looks very interesting. The idea is if field is set to D, go from Dev Complete directly to Ready to Deploy in the same workflow as A+ through C values that will use.

Can you show me an example of how to set the two paths in the workflow?

Thanks!

Lynn

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

413 views 1 18
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