Hi,
I am having some issues with making it work the way I need to. I will try to explain the best way I can.
We organize our work by Epics and tasks inside them. Lets say I have Epic with 3 tasks all assigned to someone else. Task#1 is set to Done and I want Automation to send email to assignees of Task#2 and Task#3 saying that Task#1 is Done. Then repeat the procedure when Task#2 is Done.
How do I make it work in Jira Automation?
I have done a similar concept that may help you, or future people who may google a similar question and end up here hoping to find an answer.
Jira Automation:
Trigger:
When an Issue is transition from any status (or specific states it should be coming from) to Done status.
Action:
Query Example:
parent = {{issue.parent.key}} *This will get all Issues with the same parent Issue that triggered the rule*
AND
assignee != EMPTY *This will get all Issues that have someone assigned to them*
AND
status in ("<Enter status here>") *You might want to only notify people who have tasks in a certain status*
AND
issuetype = "<Issue Type>" *This will only get a specific Issue Type if you only want to notify people that are working on design stories, build stories, bug fixes, etc.*
smartValue = smartValueName *like emailList*
Smart Value = {{lookupIssues.assignee.emailAddress}} *This takes the above Query results and creates a new list that includes only the email addresses of each assignee. Now if someone has many Issues assigned to them, their email address will appear in this list many times. However for the next part (sending the email) this will not matter as when you have many entries of the same email address in the "To:" field, it will only send it once*
To: {{smartValueName}} *like {{emailList}}*
Subject: <text or smartValues>
Content: <text or smartValues> *You can use smart values to include details such as assignee of Issue moved to Done status, the summary or key of the Issue moved to Done status, etc.*
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.