Can automation override a workflow transition?

Kevin Dickson April 30, 2024

I have quite a complex workflow (don't ask!) that includes an "Impediment" status with "all" statuses able to be moved to it.
All other statuses have to follow a single transition, e.g. ready for dev -> in dev -> code review - ready for QA, etc.

However, I would like for the items in the impediment status to be able to be moved back to their original status, thus overriding the workflow transitions.

The only way I can do this currently is to create transitions from impediment to each status, or (the obvious way) make all statuses able to be transitioned to all other statuses.

I've used https://confluence.atlassian.com/jirakb/how-to-transition-to-the-previous-status-of-an-issue-using-automation-rules-in-jira-1236599919.html to capture the previous status - a very useful link!!

But, my question is, how to use this to allow the assignee to move the item out of the Impediment status and back to it's last status, when the workflow transitions are so strict.

I've created an example workflow to show how this is currently set up - used a simple workflow so as not to confuse the issue.

And thanks in advance everyone!

Sample workflow.png

3 answers

2 accepted

0 votes
Answer accepted
Guido Scollo April 30, 2024

Hi Kevin,

it is not possible to transition an issue with automation rules if the transition from a status to another does not extist in the workflow. But you can add this back transition with the condition that the transition is visible only from the user actor of the automation rule. If you use a fixed user as the actor and not the user that trigger the rule, the transition will be visible only to that user.

I hope I have been clear.

Guido

Kevin Dickson April 30, 2024

Sounds great Guido, and thanks for the prompt reply and advice.
I'll try it out and feed back.

Much appreciated!

0 votes
Answer accepted
Michael Wohlgemuth
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.
April 30, 2024

Hello Kevin,

without transition to the statuses from which the issue came, you cannot transition it back i believe. Not with and not without automation.

Since all the transition lines would'nt be pretty, and I'm one of the people bothered by this, i would probably create "any status" transitions to all of the statuses, but limit these with the help of a condition to "The Issue's previous Status (immediately before the current Status) must be Impediment."

That way, the transitions are only visible if the issue is in Impediment.

Then these can be executed by automations or by hand.

 

Kevin Dickson April 30, 2024

Thanks Michael, very much appreciated.

I'll try this out and get back to you.

Like Michael Wohlgemuth likes this
0 votes
Kevin Dickson May 1, 2024

Update:

Thanks to the community for pointing me in the right direction, a million brains are better than one ;-)

Quite lengthy when your company has complex workflows, but...

  1. For each status in the workflow, allow all statuses to transition to it.
  2. For each transition, add a "Previous Status" condition...

    Add Condition.png
  3. Select the transition that you're currently adding the condition to...

    Edit Condition.png

Suggest an answer

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

Atlassian Community Events