Forums

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

Update parent's status to Done if sub tasks are all done

Allen Chun
Contributor
August 20, 2018

I'm using Automation add-on in Jira and I would like to update the status of Parent task if all sub-tasks are all done. 

 

Currently I have this automation workflow

Screenshot 2018-08-20 23.39.12.png

 

I'm getting this error message when I'm moved all sub-tasks to Done. There's no transitions specified 

Screenshot 2018-08-21 15.20.42.png 

 

My expectation is when I move all sub-tasks to done then the parent issue should also be done. Here are the issues in Kanban Board

 

Screenshot 2018-08-20 18.13.08.png

2 answers

1 accepted

1 vote
Answer accepted
Allen Chun
Contributor
August 21, 2018

Found out the root cause. It's because I'm using the same workflow for Tasks and SubTasks 

I created another workflow which for Tasks which transition from Open to Done. This is different from SubTasks workflow which transitions from Open -> In Progress -> Needs Review -> Done

0 votes
Gregor Kasmann_Actonic
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.
August 20, 2018

Hi @Allen Chun

Because you have a trigger "Issue transitioned" which doesn't happend with parent ticket, only with sub-tasks.

You should change the trigger to another. For example to "When: Scheduled", set some interval and add additional JQL, like:

project = YourProject AND issuetype = YouParentIssueType AND status != Closed

Allen Chun
Contributor
August 20, 2018

Sorry @Gregor Kasmann_Actonic I still cannot get what you meant. I updated the screenshot of automation workflow. 

 

So basically here's what happen. 

1) WHEN issue is transitioning 

2) IF check if the status is DONE

3) FOR PARENT 

    3.1) IF parent issue is not equal to Done

    3.2) AND IF sub tasks under this parent is Done 

    3.3) THEN transition the parent issue to Done

 

but I tried moving subtasks to done but the parent issue is still not done.

Suggest an answer

Log in or Sign up to answer