Forums

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

Automation sends multiple emails even though lookup issues is set

Vicky Hsu (TPEQV) August 22, 2023

I tried to set up an automation that would send a single email with all qualified issues. 

I managed to get a list by adding the lookup issue, but I ended up receiving multiple emails each containing the same list. Here is the reference I found: 

https://community.atlassian.com/t5/Jira-Software-questions/Sending-an-email-with-a-list-of-issues-using-Automation-for-Jira/qaq-p/1192501

I can't figure out where did I do wrong with the setting: 

截圖 2023-08-22 17.58.43.png

1 answer

1 accepted

0 votes
Answer accepted
Esteban Diaz
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.
August 22, 2023

Hi @Vicky Hsu (TPEQV) , 

Yo can create an automation like this one:

sendmail1.PNG

No need to run a JQL on the schedule trigger.... you will filter your issues in the lookup component...sendmail2.PNG

And in the Send email component you can detail who you want to send the email to and as you can see in the content part I've included some HTML and smart values to create a table with the issues details.

sendmail3.PNG

Here goes a better example for the email content part (with html tables)

<h1>Weekly Report</h1>

<table border="1">
<tr>
<th>Key</th>
<th>Summary</th>
<th>Status</th>
</tr>

{{#lookupIssues}}
<tr>
<td><a href="{{url}}">{{Key}}</a></td>
<td>{{summary}}</td>
<td>{{status.name}}</td>
</tr>
{{/}}

</table>

 

I hope this has been useful to you.
I will be waiting for your comments. 😉

Cheers!


Esteban Diaz
https://www.linkedin.com/in/estebandiaz/ 

Vicky Hsu (TPEQV) August 22, 2023

Hi Esteban, 

Thanks for your reply. I did try not to run a JQL with the schedule trigger, but it wouldn't let me publish it with the error.

截圖 2023-08-23 09.01.45.png

Vicky Hsu (TPEQV) August 22, 2023

I solved the above error after removing the 3 conditions. It's all set now, thanks again for the great help! 截圖 2023-08-23 09.01.45.png

Like Esteban Diaz likes this
Esteban Diaz
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.
August 22, 2023

That's great! 😁

Suggest an answer

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

Atlassian Community Events