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


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"

1 vote

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. 


You can use Current Status Condition (JMWE add-on)

Thank you for your answer.

If I need to exclude the current status in the transition, how can I do the same?

For example: If a task is currently in Progress and it can move to all transitions except the current one(in progress) and Resolved.

Change the workflow so that it does not have the transitions you do not want in it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

135 views 0 6
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