How to send a notification with a numbered list of issues with Automation for Jira

Still need help?

The Atlassian Community is here for you.

Ask the community

robotsnoindex


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

In this documentation page there are some samples on how to send a list of issues in a summary e-mail.

To send a summary e-mail with a numbered list of issues some extra coding in the content is required.
To get an end user-friendly index of issues in the e-mail, an index starting at one is preferable, therefore using the HTML tag for ordered list with a numeric index <ol type="1"> can deliver this result.

Environment

  • Jira Server / Data Center 8.0.0 and any higher version
  • Automation for Jira 7.0.0 and any higher version

Solution

Start with an automation rule as in the Run a rule against issues in bulk.

Create an action send e-mail and in the content add the following code block into the content section of the e-mail to be sent:

<ol type="1">
{{#issues}} <li>URL: {{url}} - {{description}} By {{reporter.displayName}}</li> {{/}}
</ol>

(warning) Make sure the send e-mail action configuration is set to "Send as: HTML"

Resulting e-mail:

Isues opened this week

  1. URL: http://jira-host:port/browse/IP-75 - New description By Alana Grant
  2. URL: http://jira-host:port/browse/IP-74 - This is the new description By Alana Grant
  3. URL: http://jira-host:port/browse/IP-73 - This is the description section By Alana Grant
  4. URL: http://jira-host:port/browse/IP-72 - Color wrong By Mitch Davis



Last modified on May 23, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.