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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to send email to all assignes inside Epic when one of the issues inside Epic is Done Edited

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? 

1 answer

0 votes

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:

  • Then: Lookup Issues using JQL query

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.*

  • And: Create variable

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*

  • And: Send email

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.*

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

265 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you