Forums

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

Issue to get all tickets

Beauvois Sebastien March 21, 2025

 

 

Hi,

In JIRA Automation, I try to send an email with a list of issues returned by the trigger JQL.

I'm using  {{issues}} but it send me one email at a time. I want to have all in one email.

 

How can I have this?

 

Tks

2 answers

2 accepted

4 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.
March 21, 2025

Hi @Beauvois Sebastien -- Welcome to the Atlassian Community!

For a question like this, context is important for the community to help.  Please post the following:

  • an image of your complete automation rule in a single image for continuity,
  • images of any relevant actions / conditions / branches,
  • an image of the audit log details showing the rule execution, and
  • explain what is not working as expected and why you believe that to be the case.

Until we see those...

The plural smart value {{issues}} only works with Jira Server and Data Center versions of automation using the bulk-handling feature: https://confluence.atlassian.com/automation103/run-a-rule-against-issues-in-bulk-1488594794.html

If you are using the Scheduled trigger (or a branch) did you enable the option to make that smart value work?

 

When you already have branching in the rule and want to send a single email with issues, the Lookup Issues action may be used for newer versions of Data Center automation.  Please note that is limited to only a small number of fields.  When more are needed, the REST API must be used (with the Send Web Request action) as a workaround.

 

Kind regards,
Bill

Beauvois Sebastien March 21, 2025

It si a very simple rule

A Scheduled trigger with JQL

Send email

 


Error-in-rule-email.png

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.
March 21, 2025

Did you enable the option "Process all issues produced by this trigger in bulk"?

When you do that, the plural {{issues}} smart value will work.  Please see the documentation link I provided.

 

Also, the {{lookupIssues}} smart value only works after first using the Lookup Issues action.  That does not appear to be needed for your rule.

 

 

0 votes
Answer accepted
Sergei Troshin
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.
March 21, 2025

Hi @Beauvois Sebastien and Welcome to Atlassian Community!

Try out using Lookup issues action:

screen1.png

Then create Send email action and use {{lookupIssues.key}} smart value:
screen2.png
As a result you will get such email:
screen3.png

The key feature here is to use {{lookupIssues.key}} smart values, which allow you to send multiple issues in a batch.

Beauvois Sebastien March 21, 2025

Hi, no it doesn´t work.

 

I thought "{{lookupIssues.key}} " would be only for CLOUD not JIRA DATA CENTER.

 

I received several email and all are empty

Sergei Troshin
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.
March 22, 2025

Hi @Beauvois Sebastien hope you're doing well!

Yeah, sorry, i provided solutions for Cloud version. In your DC case have you tried this checkbox?screen.png

Beauvois Sebastien March 24, 2025

Hi, the issue was with this checkbox. I didn't found it at first. 

It's quite hidden to be honest.

 

Thank you!

 

REgards

 

Seb

Sergei Troshin
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.
March 24, 2025 edited

Hi @Beauvois Sebastien

Great, thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events