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:
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
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?
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.