How to move issues back to a previous status in JIRA workflows


Posted by
Romain BEAUVOIS

May 10, 2016

When working on JIRA workflows, people often ask if it’s possible to transition an issue back to its previous status. Some use cases could be that they need to put the issue on standby status, or that they need more information about an issue before starting a process.

In the following example you’ll see how to set up an ‘On Hold’ status for issues in JIRA, and how to transition an issue a step back in the workflow.

For this trick, you’ll need to install the JIRA Misc Worklows Extensions add-on.

Build your JIRA workflow

  • Create a global transition to the ‘On Hold’ status
  • Create a transition from the ‘On Hold’ status to every other status you want to come back to
Since the transition names cannot be the same, just add a blank space at the end of it!

Workflow

Add conditions to transitions

Since you don’t need to transition from the ‘On Hold’ and ‘Done’ to ‘On Hold’ status, we will hide them! To do this, add the value field condition on the global transition to the ‘On Hold’ status:

Value field condition


 

On each ‘Back to previous status’ transition, add the Previous Status condition, selecting the correct status in the options. For example, on the transition from ‘On Hold’ to ‘In Progress’:
Previous Status condition

Now let’s see the result !

My issue is in the ‘Open’ state: I can either start progress or put it on hold:

Open Status

 

My issue is in the ‘On Hold’ state: I can only go back to the previous step:

 

On Hold Status

And that’s it – how move issues back to a previous status in JIRA workflows! If you have any questions or comments, drop me a line below.

  • Romain

    Hi Mohammed,

    You may forgot the step dealing with the “Previous Status” condition on “back” transitions.
    => On each ‘Back to previous status’ transition, add the Previous Status condition, selecting the correct status in the options. For example, on the transition from ‘On Hold’ to ‘In Progress’. Also remember to check “Most recent status only”.

    Regards,
    Romain

  • Mohammed Helly

    Hi Valiantys

    I’ve tried this approach but I got the three transition to go back not only one, What did I do wrong ?