Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

AUTOAMTION - Execute an action if many subtasks created by another automation are done

Kadhem MEJRI December 13, 2023

Hello,

With automation I did :

When I create an epic, 5 user stories  (with different summaries) are created

for each user story, 4 sub-tasks (with different summaries) are created 

Example : in user story 1, I created Subtask1, Subtask2, Subtask3, Subtask4

I want to send a mail notification to a user when Subtask2, Subtask3, Subtask4 are in Done status

I tried giving each one a label and then when all the issues with the labels are done I execute the rule and I tried with a summary instead of the labels but I always have a problem on how to tell jira execute the rule ONLY when the 3 conditions are met (3 subtasks with specific label or summary are done)

Can you please help me ? maybe you have a better idea on how to do it

Thank you so much

1 answer

0 votes
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.
December 13, 2023

Hi @Kadhem MEJRI 

Can you write a JQL statement that will determine when your 3 conditions are met?

If so, your rule could be triggered on an issue transition to Done, and then perform the check.  For example,

  • trigger: issue transitioned to Done
  • condition: issue type is subtask
  • then check for your condition in a couple of possible ways...
    • related issues condition: with your JQL to check if the specific subtasks are done
    • or, using Lookup Issues with your JQL, then use and advanced compare condition to check the count of issues found matches what you expected
  • action: send the email

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events