Forums

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

Workflow block

bartlomiej.jochym
Contributor
July 15, 2024

 

Hi, Is it possible to block the transition to status after a change from it? Maybe add a validator? For example, once you change from "in progress" to any status (review, testing, etc.), you can't go back to the status in progress.

 

Ignore IN TEST TO DEV, IN TEST ON DEV, BLOCKED AND CLOSED

 

Screenshot 2024-07-14 at 10.44.42.pngScreenshot 2024-07-12 at 17.01.17.png

1 answer

1 vote
Mikael Sandberg
Community Champion
July 15, 2024

Yes, that is possible. You can either use the previous status validator, or the other option is to disable the global transition and instead create a transition from for example To Do to In Progress.

Matt Parks
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 15, 2024

It's my understanding that the previous status validator means only that you can't transition back to the status that you just came from. But, if you were in that status in the distant past (e.g. Backlog > In Progress > In Test > Blocked), you could still move from Blocked > In Progress, even with the previous status validator.

Like John Funk likes this
Mikael Sandberg
Community Champion
July 15, 2024

I should have said the condition in my answer. The previous status condition will evaluate if the issue has been in a previous status or not, but you invert it so that you can prevent the issue going back to that status

Screenshot 2024-07-15 at 1.09.37 PM.png

Here is an issue that is using the above condition, it is currently in the In progress status and I have these options:

Screenshot 2024-07-15 at 1.11.00 PM.png

If I move it to To Do, my only option from there is Done

Screenshot 2024-07-15 at 1.11.12 PM.png

And this is persistent so it doesn't matter how many times I move it between To Do and Done, In progress will not be an option since I have already been in that status. The scenario you describe would only happen if you selected "Most recent status only".

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events