Forums

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

Automatically transition a task after all stories have transitioned?

Anna Herbener January 16, 2022

Is there a way to automatically transition a task when all related stories are in a certain status?

 

My setup is like so:

  • Task A is related to ("has to be completed after") Story 1, Story 2, and Story 3
  • When ALL stories are in "Ready for QA", I would like Task A to automatically transition to "Ready for QA"

 

The tricky part here is, Stories 1-3 transitioning to Ready for QA is the trigger, and the stories are NOT related to each other, but only to the one task. So, is there a way to write an automation for, when moving the last story to "Ready for QA", move the related task also to "Ready for QA"?

 

Thanks for any help.

1 answer

1 vote
Jack Brickey
Community Champion
January 16, 2022

So I would consider running an hourly scheduled rule and inspect if all tasks linked to Task A have reached the Ready for QA status and if so transition Task A.

Anna Herbener January 16, 2022

Hmm ok, am I on the right track? I am trying this but it's not working.

 

Screen Shot 2022-01-16 at 9.08.00 PM.png

Jack Brickey
Community Champion
January 16, 2022

Hi Anna, what does the audit log show?

Anna Herbener January 17, 2022

No actions performed:

Screen Shot 2022-01-17 at 8.16.06 PM.png

Anna Herbener January 17, 2022

I got it! Previously in the trigger, in the JQL, I had "Epic Status" != Done (copy/pasted that from somewhere; I thought this would search for tasks within epics that were not done, but I think it was just searching for issues with an "Epic Status" field, i.e. epics). I changed it to just Status != Done and now it works.

 

Thanks so much, @Jack Brickey !

 

Screen Shot 2022-01-17 at 8.20.28 PM.png

Like Jack Brickey 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