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

How do i transition a ticket when all child tickets are done?

Scott Federman March 2, 2022

I have a standard issue type of "LO comp agreement change request" which is the parent of the issue type "LO comp request task". They are linked using the parent link field from the roadmaps app, not the standard default jira linking functionality. What am i doing wrong here. I want the parent issue to close automatically when all child issues are marked and done or not applicable. 

Capture1.JPG

5 answers

2 accepted

0 votes
Answer accepted
Curt Holley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2022

In line with what @Bill Sheboy has suggested, I did a similar trick using a variable to get the (upper level) Parent key to use in a JQL branch. Thus guaranteeing a single result every time (in the JQL based branch) See below. In my case i was updating the Safe Epic issue type based on a Feature (formally known as Epic) moving into "In Progress".

For the record, I believe the "Parent" branch only talks on Sub-task to Standard issue type level. This may change n the coming months as these changes continue to roll out: 

Rename ‘epics’ in your company-managed projects (atlassian.com)

 

se.png

0 votes
Answer accepted
Bill Sheboy
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.
March 2, 2022

Hi @Scott Federman 

Would you please post an image of the audit log details, showing what happens when the rule executes?  That may help explain what is happening.  Thanks!

Kind regards,
Bill

Scott Federman March 2, 2022

@Bill Sheboy yes of course. It says no links because i used the parent link field. audit log.JPG

Bill Sheboy
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.
March 2, 2022

Hmmm...if that branch type does not work due to the linking, please try a branch on JQL to get at the parent.  You can test that JQL first with advanced search and once you have what you want, use it in the branch.

And...you do not show the details of your second "JQL issues match" condition to check for remaining items as "done" or "not applicable".  Please review that to ensure it does what you expect...and if not, instead consider using Lookup Issues and check the size to confirm there are no remaining child issues.

0 votes
Scott Federman March 4, 2022

So it turns out that i had a post function that was blocking the automation. Silly rookie move i didnt notice. 

0 votes
Scott Federman March 2, 2022

@Stefan Salzl @Bill Sheboy 

I am able to get it to transition the parent with this automation when one child ticket closes but i cant seem to get it to hold off until all are closed. 

2.JPG

Bill Sheboy
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.
March 2, 2022

Correct; that is why I suggested replacing your second JQL condition with a Lookup Issues action with JQL to check for any sibling issues (same parent) and which are not done/completed.

Then use an advanced compare condition and only proceed if the following value is zero: {{lookupIssues.size}0}}

Like Stefan Salzl likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2022

my vote for @Bill Sheboy ‘s answer 😉

0 votes
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2022

Hi @Scott Federman ,

Is that by purpose that your JQL (especially the issue types) are the same in your condition for the trigger as well as for your parent branch?? 

As described in your initial question "LO comp agreement change request" is the parent. As this issue type is not part of the JQL condition in the parent branch it cannot find a match.

Best
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events