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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Get a list of issue keys

I have created an automation (which will run once per day)  to resolve issues that have a status of Done and have not been touched in 15 or more days.

status = "Done" AND updated < -15d AND resolution = Unresolved

Now I want to send an email with a list of issue keys that were changed as a result of the automation.  How do I do this? (What do I enter into the "Content" of the email message?)Screenshot 2023-04-03 111014.jpg



1 answer

0 votes
Riley Venable (Atlas Bench)
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 03, 2023
To send an email with a list of issue keys that were changed as a result of your automation, you can use the "Send email" action in your Jira automation rule.

1. Start by creating a new automation rule or editing an existing one.
2. Add a new action and select "Send email".
3. In the "Recipient(s)" field, enter the email address(es) you want to send the list of issue keys to.
4. In the "Subject" field, enter a descriptive subject for the email, such as "List of Issues Automatically Resolved Today".
5. In the "Content" field, you can use the following syntax to include a list of issue keys that were changed as a result of your automation: ``` {% for is in issues %} {{ is.key }} {% endfor %} ``` This will loop through all the issues that were changed and include their keys in the email message.
6. You can also add additional information or context to the email message by including text before or after the for loop. It's important to note that if you want to include additional information about each issue beyond just the key, such as the summary or description, you will need to use a third-party add-on like Advanced Notifications for Jira.

Thank you @Riley Venable (Atlas Bench) .  I tried that but it did not give me the desired results.  Instead of 1 email with 200+ issues listed, I received 200+ issues and each email had only 1 issue listed.

I entered this into the content of my email in the automation:

``` {% for is in issues %} {{issue.key}} {% endfor %} ```

Will a different syntax give me the desired result of one email with all the issues listed within it?

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events