Forums

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

Automation - Ticket parent and subtask

leonardo villanueva January 31, 2022

Hi! How are you? Please, i need your help to fix an issue.
We`ve created an automation rule for an isse type "Service request"; the ticket parent has 2 sub-task and it should change the status (from In Progress to Resolve) just when the subtasks have been completed, but it is not working.
I Attach image with the automation rule.foro 1.PNG

1 answer

1 vote
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2022

Hi Leonardo,

I see that you are wanting to use automation to transition a parent issue when both of it's subtasks are transitioned to a completed status.  Your screenshot looks to be close to the solution, but I think you might be missing a conditional check here.  I created a similar rule in my own test site which looks like this:

Screen Shot 2022-02-01 at 9.04.24 AM.png

 

This is a project rule, that runs anytime any issue is transitioned to done or resolved.  However there is a first a condition check to see if a parent issue exists.  If it does, then the branch rule (in purple), makes an additional JQL check to make sure that all subtasks of that parent are currently in a status such as Done or Resolved.  If that's true, only then will the parent transition it's status to done as well.

 

I tested this on an issue with exactly two subtasks and it worked as I expected.  It only transitioned the parent once both subtasks were completed.

Try that and let me know if this helps.

Andy

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