Workflow Transition in Jira: How to allow all statuses except one to transition to a particular states

I have a workflow in which I have introduced a status'On Hold' Now I want all the statuses to be able to transition to 'On Hold' except for the 'closed issue' status.

Selecting the checkbox 'Allow all statuses to transition to this one' will mean even The 'Closed issue' Status can be put On Hold. Which does not seem logical.

I know I can add transition from each status to 'On Hold'. But is there a better way to do it?

2 answers

This widget could not be displayed.


I wanted to achieve the same thing with the `Duplicate` state and didn't want to have incoming transitions from all other statuses smile

Solution 1 (Failed)

Add the following condition: `Previous Status Condition` to the transition. Check `Most recent status only` and also `Reverse condition`.

But this doesn't work because it checks for the previous status and not the current status of the issue.

Solution 2 (Success)

Add the condition: `Value Field Condition` to the transition. Choose `!=` and type the String value of the status you want to exept. Make sure it matches with capitals letter (i.e. DuplicateWon't Fix).

This will work as a charm!

This works! Note the "Value Field Condition" is part of the free add-on "Suite Utilities for JIRA"

This widget could not be displayed.

No is the short answer. The reason the "all" is there is to save the effort of having to link a transition loads of times. But there's no way anyone can predict "all except". For that, you should do it the way it's designed - create one transtion and reuse it where you want.

The other option is to add a condition to the transition that says "if current status = closed, do not allow transition". It'll look odd in your workflow diagrams, but the users won't be able to use the transition.

Hi Nic,

Thanks for the solution. I will try to incorporate the same. If it is successful I will update the forum with the result.

I am guessing there have been changes in "transition editing" since this answer was written because I do not seem to have the ability to add a condition as I wish. Upon clicking the "Add Condition" button it lists out a set of conditions (radio buttons) to choose from. And "if current status = closed, do not allow transition" is not one of them.

Any idea how this requirement can be achieved now?

It's not been removed.  It was never there in the core product - you have to add it yourself with an add-on that provides the condition, or create a script for it.

Thank you for your answer Nic.

Which add-on provides the condition?

I also need to know how to add a script to a condition. 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

189 views 3 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