Forums

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

Automation Rule when Parent is moved, move sub-tasks only if their status is not ahead of parent

Ireneusz Zygmunt
Contributor
February 25, 2022

Hi, 

 

I have a specific requirement.

Let's say that our workflow is like that:

To Do -> In progress -> Ready for testing -> Testing -> Ready for UAT -> In UAT -> Completed -> Done

We have specific transitions set up, I already gave special conditions for "Automation for Jira" user in our workflow so that he can move from "Any" to specific status. I also marked that if "Sub-task" is already in "Done" status then don't move if.

What I want to achieve:

1. Story (parent) is in "In progress" status.

2. First sub-task is in "In progress" status too.

3. 2nd sub-task is already in "Ready for UAT" status.

4. 3rd sub-task is in "To Do" status.

5. Now when I move Story (parent) from "In progress" to "Ready for testing" then only 1st and 3rd sub-task will move, 2nd sub-task won't move because it is already ahead in workflow.

 

Current Automation Rule that works fine, but moves all sub-tasks regardless what status they have except Completed, Done, Cancelled, On Hold:

 

Jira Automation Rule.png

How this can be achieved using standard Jira Automation for Jira Software Cloud?

 

Best regards,

Irek

2 answers

1 accepted

1 vote
Answer accepted
Sachin Dhamale
Community Champion
February 25, 2022

@Ireneusz Zygmunt ,

For this you need to write Automation rule for each transition move for example

When: Issue Transitioned to Ready for Testing 

For Subtask:

Condition - Subtask is not one of - Mentioned ahead status (Ready for Testing, Testing, Ready For UAT, In UAT, Completed and Done)

 

Same you can do when parent issue move to Testing then subtask condition for issue not in (Testing, Ready For UAT, In UAT, Completed and Done

 

Same you can do when parent issue move to Ready For UAT then subtask condition for issue not in (Ready For UAT, In UAT, Completed and Done)

 

Accept the answer if this helps

 

Thanks,
Sachin

Ireneusz Zygmunt
Contributor
February 25, 2022

Hello Sachin,

 

That works, thanks!

 

However, if you know any way that this could be achieved by single automation rule then please post answer here. Otherwise, this is sufficient.

 

Best regards,

Irek

0 votes
Ireneusz Zygmunt
Contributor
February 25, 2022

-

Suggest an answer

Log in or Sign up to answer