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!

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:


 

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’:

Now let’s see the result !

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

 

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

 

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.

  • Jba

    Hello everyone,
    would someone have a complete workflow (jira) on the processing of a ticket.

    Thanks in advance

  • Andreas Van Rienen

    Hey guys –

    Excellent and informative blog post. I believe you have the add-ons wrong. The mentioned “Value field condition” is provided by the
    JIRA Suite Utilities add-on (and not JIRA Misc Workflows).

    Best regards, Andreas

  • Manon Soubies-Camy

    Hi Andrena,

    Indeed you’ll need to install JIRA Misc Worklows Extensions to get this trick to work, here is the Marketplace link: http://bit.ly/1VpIKPJ

    Hope this helps!
    Manon

  • Andrena Lefdahl

    Not seeing the Previous Status Condition, is that an add-on?

  • 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 ?