How do I force a transition based on a custom field drop down selection?

Hi All,

I have a simple forked (or nested) workflow with the ways to go. On the transition screen leading to this fork, I have a drop down menu. What I want is that if one option is selected, the corresponding transition will be automatically active. If not (the other 4 options), the second transition is active. Does this make sense? Open to any plugins too if it's not doable out of the box.

1 answer

This widget could not be displayed.

You can force a transition based on a custom field content using a post function. Depending on the plugins you already have installed this may require the purchase of an additional plugin to provide the ability to check a customfield content and then update the destination based on that content.

 

An alternative to the enforced transition is to build a custom validator which checks the chosen custom field value and confirms that the destination status is approved.

 

ScriptRunner4JIRA is one possible solution which also opens up several other conditions/ validators and post functions to you.

Thanks Phill!

 

I'm a little confused though about forcing a transition based on custom field content. I absolutely understand post functions, just not sure how to do that. I have update on transition, create on transition, and the workflow toolkit, I just don't know how to do this specific thing. Could you please elaborate?

Steven Behnke Community Champion Apr 04, 2016

It'd be easier if you told us what workflow add-ons you have, like Script Runner, JIRA Suite Utilities or Misc Workflow Extensions. 

Classic JIRA doesn't have the ability to do this natively. 

@Steven Behnke I have update on transition, create on transition, suite utilities, and misc workflow extensions. Thanks!

Steven Behnke Community Champion Apr 04, 2016

Oh wow, you said as much in the previous comment. smile Woops!

Just to be clear (this affects my answer),

You want to perform this "condition" check on a field set on the issue.
OR
You want to perform this "condition" check on a field set on the transition screen during a transition.

Hi Steven

I'd prefer to do the latter, if the secondary transition could happen automatically based on the user selecting a specific item in the drop down list on the transition screen, that would be great. ,

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

178 views 1 3
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