Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Show just back transition to the previous, even if thre are many back transitions from that status

Bojana Vasic
Contributor
July 3, 2018

Hi,

How to make available just a back transition to the previous status?

I have the status called "Waiting for information" and you can transition to a number of statuses from that status... so when I go from the status "To Do" to the status "Waiting for information", then from the "Waiting for information" I can transition to all other statuses that have a transition to/from "Waiting for information", but I need to go back only to the previous status, i.e. "To Do" and not having available all other transitions...
Is there a way to fix this?

Many thanks! :)

5 answers

2 accepted

1 vote
Answer accepted
Tansu Akdeniz
Community Champion
July 3, 2018

Hi @Bojana Vasic,

One of the solution is to add a condition for each transition. There are many ways to do it (generally via add-ons).

Ex:

  • To Do -> Waiting for Information -> To Do
  • In Progress -> Waiting for Information -> In Progress

If you only want to see the button where it came from, than you can use some of these add-ons; Enhancer plugin, Script Runner, JIRA Misc Workflows etc. Than add "Previous Status Condition".

Second option is to add a new customfield (Ex: Prev Status) and fill it with the current status while transition.

  • To Do -> Waiting for Information (Postfuntion: Prev Status = current status)
  • Waiting for Information -> To Do (Condition: Prev Status = To Do)
1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Two ways to do it:

1.  Only have the transitions you need in the workflow - you could edit the workflow and remove the "all" transitions, changing it so that you only have a forward and a back in the workflow.

2.  Probably more useful for the use-case I'm imagining - add "conditions" to each of the transitions that says "only if this was the previous status".  The down-side of this is that there are no conditions built into Jira that provide that, so you will need to find or write an add-on to provide that.

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Hello,

 

You can add a text custom field, for which you would set a value in every transition leading to the Wating for information status. The value for this field woud be the name of this transition. You can do it with the Update Issue Custom Field function. 

Then you should add the Value Field condition to all transitions outgoing from the Waiting for information status. In this condition you check the created text custom field value with the name of the transition. 

That is all.

1 vote
Mirek
Community Champion
July 3, 2018

So you want to hide other transitions but still make them available? In order to do this you need to modify your worklow and for example set some workflow conditions. Or simply delete those transitions that you do not want to have (or execute) and keep only the one back to "To Do".

0 votes
Bojana Vasic
Contributor
July 3, 2018

Thank you all! I will use Script Runner - add "conditions" to each of the transitions that says "only if this was the previous status".

Kind Regards,

Bojana

Suggest an answer

Log in or Sign up to answer