Jira Automation - Sending only one email and not per issue

Dayana Petrova May 20, 2022

Hi everyone,

For the below conditions and actions I am receiving an email per issue and I want to receive only one to alert me that more than 5 issues were created in the last 1 hour as per the JQL search. Also if there are 7 issues detected, for example, I receive 7 identical emails. I am not able to run the scheduled start without selecting: "run a JQL search and execute actions for each issue in the query".

 

Do you have any suggestions? Thank you! 

 

Jira Automation_Start.jpgJira Automation.jpg

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 20, 2022

Hi Dayana,

Here is one I use and it works great.

screenshot.png

Dayana Petrova May 27, 2022

@John Funk Thank you for the suggestion. I am still receiving an email per each issue. 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 27, 2022

Can you share your rule? 

Clint Collins November 23, 2022

This took me way too long to work out, however the answer is to use the 'distinct' limiter.  Paste this in the To (or cc or Bcc) field and it will send the email to an assignee only once, regardless of the number of issues they have in the list: {{lookupIssues.assignee.emailAddress.distinct}}

Zack Ahmed
Contributor
April 1, 2024

@Clint Collins thanks, that worked great!

I have multiple assignees, how do I send each their issues only?

Alistair Attrill
Contributor
June 25, 2024

@Zack Ahmed Did you work this out, i am trying the same.

 

Getting stuck on the branch...

Zack Ahmed
Contributor
June 25, 2024

I used this article to make it work: Automation to send email only once per assignee | Jira | Atlassian Documentation

But, I stopped using it because LookupIssues is limited to 100 issues and my filter had more.

I just opted to send the assignee an email per issue.  Maybe that'll get them to work on it.

 

Suggest an answer

Log in or Sign up to answer