Forums

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

JIRA Automation: Workflow transition when certain tasks are 'Done'

Jack Garrod October 12, 2020

Hi, 

 

I am trying to write an automation such that when 3 of the 5 tasks related to my story are 'Done' then the related Story transitions to the next step in workflow - the 3 tasks that need to be done all share a common word in the 'summary' field and I was wondering if I could use this to differentiate between the tasks that need to be 'done' and those that don't.

So far I have the following:

Automation (Basic).PNG

- this automation will transition the linked story to the next step in the workflow but ALL of the related tasks have to be set to 'Done' however as explained above id like to further this such that only those tasks with the word 'development' in the summary field need to be in status 'done' for the related story task to progress to the next step of the workflow (namely SPEC DEVELOPED). 

 

Any help would be much appreciated

 

thanks 

1 answer

0 votes
Derek Fields _RightStar_
Community Champion
October 12, 2020

I believe that this workflow will address your needs:

2020-10-12_9-27-36.jpg

The If statement looks for any issues that have your summary text that are NOT Done. If this returns one or more issues, then it will simply add a line to the audit log. Unfortunately, there is no way to put in a "NO OP" action, so this is the simplest and least intrusive action. If there are no issues that are NOT Done, then it will transition the issue.

Jack Garrod October 12, 2020

Thank you - just to confirm, this is the current set up I have.

My requirement is that once that RCDEMO-708 is transitioned to 'Done' then the automation picks up the fact that all related issues with the word 'Development' in their summary are now in the status 'Done' and then transitions the overall issue to 'Spec Developed'. Automation (ADV).PNG

 

I am getting this error when I run the workflow suggested above:

Error.PNG

 

My attempt of putting it into a logical piece of prose would be: 

When 'task' is transitioned from in progress > done, Pick up the linked ('Related to') story issue and if all the linked task issues to that story issue with the word 'Development' in the summary are in status 'Done' then transition that story issue from 'Spec signed off' > 'Spec developed' otherwise leave the story in its current status.

Suggest an answer

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

Atlassian Community Events