Forums

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

Jira automation sends email duplicates

Yuliia Vyborova
Contributor
June 19, 2023

Hello Community!
I created Jira automation that sends Lookup issues at a scheduled day and time to my email.

 

  Screenshot 2023-06-19 at 7.49.00 PM.png 

When I test the automation and at scheduled time, I get ~30 duplicated emails (see screenshot below)

Screenshot 2023-06-19 at 7.50.54 PM.png

Does anyone know how to fix this?

 

2 answers

1 accepted

2 votes
Answer accepted
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.
June 19, 2023

Hi @Yuliia Vyborova 

Does your scheduled trigger have JQL?  If so, that would explain the multiple emails.  Please try removing the JQL from the trigger and only use the results of the lookup issues action to have a single email.

Kind regards,
Bill

Yuliia Vyborova
Contributor
June 19, 2023

Yes, I checked 'Run a JQL search and execute actions for each issue in the query was'. Now I get one email! Thanks a lot!!!

Like # people like this
Jacob Jonathan Muzulu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2023

Thanks @[deleted]. I was having a similar problem and now after unchecking the Schedule JQL the system is sending only one email with all the issues passing the Lookup JQL.

Like Bill Sheboy likes this
0 votes
Vikrant Yadav
Community Champion
June 19, 2023

Hi @Yuliia Vyborova In email body, I think you used wrong lookup issue syntax, try this :- 

{{#lookupIssues}}
* {{key}}-- {{summary}} -- {{assignee}}
{{/}}

Yuliia Vyborova
Contributor
June 19, 2023

{{assignee}} returns field ID, not name. What syntax should I use then?

Screenshot 2023-06-19 at 10.28.05 PM.png

Yuliia Vyborova
Contributor
June 19, 2023

I tried {{assignee.displayName}} and it worked. Thanks again!

Like Vikrant Yadav likes this
Vikrant Yadav
Community Champion
June 19, 2023

Glad to hear we are able to help you out :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events