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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,867
Community Members
 
Community Events
176
Community Groups

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

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 Mar 02, 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

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

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

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.

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

@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

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 Mar 02, 2022

my vote for @Bill Sheboy ‘s answer 😉

0 votes
Stefan Salzl Community Leader Mar 02, 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

Atlassian Community Events