How to make a transition go to a conditional destination

I'm a PHP developer, but have inherited our Jira maintenance thanks to the admin leaving the company. I'm VERY new at this, so please bear with me. I wasn't able to find anything in the documentation about this.

We have a workflow called Development, with several issue types (bug, story, epic). These all follow the same workflow - when the Pass Code Review transition occurs (user clicks a button), the ticket is moved into In QA status. When the Pass QA transition occurs, it moves the ticket to In Staging status.

Main workflow

We now need to add a new issue type - hotfix - that bypasses several statuses (including In QA). Do I need to create a completely separate workflow for this issue type? Or is there a way to make the transition conditional, so that if the issue type is Hotfix, when the ticket hits Pass Code Review, it will skip In QA and go to In Staging?

1 answer

1 accepted

1 votes

Well, the short answer is that you don't. A transition only has one end-point, by definition.

What you can do:

Have many transitions that have conditions on them. For example, if you need to bypass all the QA stuff sometimes, have a transition from code review directly to staging. Add conditions like "only the project lead can do this"

If you need to bypass QA for "tasks" then yes, you've got the right idea - create a new workflow for tasks only, one that has no QA steps in it

A third option for the conditional transitions is a bit more complex - say you want to go to status X or Y depending on what the user puts into field Z during the transition. I've seen (and made a lot of money repairing) systems that try to subvert the end of the transition. It does not work. What does work is to create a transition from X to Y, and then catch the "transition to X" in a "Listener", scan it to check whether it should land on X or Y and then push it to Y if necessary.

When you say "create a new workflow for tasks only", I'm assuming you're using "tasks" in place of my specific issue type (hotfix)?

Sorry, yes, I was generalising. Create a new workflow for "hotfix" only

Thanks. This is all very complicated!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,797 views 11 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
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