Automation that Fires off once several child issues are complete

Brandon Garrett March 6, 2024

Hey Jira community,

I am looking to create an automation to send an email when 4/6 child issues for a parent are complete.

I have been successful in making it work for one issue, using the "Compare two values" component and using the issue summary as a smart value.  

What I would like to do is have it send an email notification when a group of four subtasks are completed.

The way it works currently is when an Agency Level issue is created, we have a rule that autopopulate those agencies with 6 subtasks.  2/6 have individual email notification rules set up already as mentioned above.  Ill share a screenshot of my rule here:
jira 5.png

This has been tested and is working fine.

I am also aware that I could modify/copy this rule to add a bunch of if/and statements and use that to apply to the four issues I am trying to target for this new rule, but I would rather have it function in a less cluttered way.

Ideally, I think there is a way that I can ask the automation to count the number of completed issues.  If that number is equal to 4, it should trigger the email.  Anyone have any idea on what I could do to make something like this happen?

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
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 6, 2024

Hello @Brandon Garrett 

Do you want the email if any 4 subtasks are done, or do you need to check 4 specific subtasks?

If you need to check 4 specific subtasks, how do you identify those?

Does it matter how many total subtasks there are?

Brandon Garrett March 6, 2024

Hey Trudy, 

Thanks for the reply.

1) It needs to be all four, not just a single of the four.  
2) This part is a bit up in the air.  I could just have it be for the first four completed subtasks.  I dont neccessarily need to indentify what those subtasks are, but if I did I imagine I could use repeating if/or statements of the 'compare two values' component in the automation.
3)  It does not.  Some parents have 8 subtasks, some have 6, some have 7.  They all have a minimum of 6.

Thanks again,

Trudy Claspill
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 6, 2024

Hi Brandon,

1) I understand that 4 tasks need to be "done". My question is this: if there are 6 subtasks does it matter which specific 4 of the 6 are "done", or can it be any 4 of the 6?

4) What information does the email need to include?

If you want a rule to check that at least 4 subtasks are complete, and it doesn't matter which 4 they are, then you can use this:

Screenshot 2024-03-06 at 12.24.24 PM.pngScreenshot 2024-03-06 at 12.24.37 PM.png

Like Brandon Garrett likes this
Brandon Garrett March 6, 2024

Thank you for this!  This is enough to get me started

1) I'll have to follow up  with my team on this but I think I can do it without the specific issues. 
4) I have the email part handled.  Appreciate your help!

Brandon

Trudy Claspill
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 6, 2024

I'm glad I could help.

If you find that my responses enable you to solve your requirement, please consider clicking the Accept Answer button. That marks your question as Solved and can help other users searching for answers find the posts with validated answers.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events