Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is it possible to trigger a transition state of the parent when all child tickets are done?

Paul Hurst September 2, 2019

 i.e. once all child tickets are set to done change the parent ticket to Done

2 answers

1 accepted

0 votes
Answer accepted
Gil
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.
September 3, 2019

Yes it's possible.

 

1. use a transition trigger

2. use a JQL to filter which issues you'd like to check if they are done. example:

issuetype in (Sub-task, Story-bug)

3. then you need to use a branch rule for the parent, because you want to make actions on the parent.

4. Then the key is to use a Related Issue Condition with a condition of "All match specified JQL" and in your JQL you specify that all sub-tasks (or other sub-issue types you have) are in DONE or Closed status (depends for your case. We use CLOSED as a status and Done as a resolution)

5. Then you want to add another safety check to check if your parent is in it's desired status, use the Advanced Compare condition and compare the status of parent with the name of the status it should be on, before closing the parent.

6. lastly, use the Transition action rule to transition the parent to Close/Done.

 

Hope it was helpful.

 

Cheers,

Gil

Paul Hurst September 4, 2019

Thanks Gill

I need to gen up on JQL now

Paul

1 vote
Ilya Turov
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.
September 2, 2019

Scriptrunner has it as a built-in functionality

Maybe some other plugins can do same thing, I personally only scriptrunner so can't really say.

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2019

JMWE has a point and click post-function for that, Automation for Jira can do it too, in a different way. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Apps & Integrations Events