This document explains the different email templates that you can be used in the Email issue post-function. Pick a template from the drop-down to use for the email. The HTML /or raw text body will appear inside that template.
On this page:
Table of Contents |
---|
Blank
...
and Basic templates
With the Basic /or Blank templatetemplates, the email received will not have issue information and links to the issue key, unlike the Default Jira Notification Email template. The only difference between the Blank and Basic templates is that the Basic template includes a footer specifying that the message was sent by Atlassian:
...
You can add a header of your choice in the HTML body of the email for a different layout. For example:
...
And the email will look like this (here with the Blank template):
...
Default Jira notification template
With the Default Jira Notification template, the email received will have information and links to the issue key as shown below.
...
No template
There will be no formatting to the Email sent when you select No templateWhen you select the “No template” option, no HTML code will surround the content of the HTML body field. The HTML body field will need to return a valid HTML document, starting with an <HTML> tag.
...
You can add a header of your choice in the HTML body of the email for a different layout. For example:
Code Block | ||
---|---|---|
| ||
<html> <body> <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:collapse"> <tbody> <tr> <td style="padding:0;border-collapse:collapse;font-family:Arial,sans-serif;font-size:14px;padding-top:10px"> <a href="${ComponentAccessor.applicationProperties.getString("jira.baseurl")}/browse/${issue.get("project").key}" style="color:#3b73af;text-decoration:none" target="_blank">${issue.get("project").name}</a> / <a href="$issue.url" style="color:#3b73af;text-decoration:none" target="_blank" >$issue.key</a> </td> </tr> <tr> <td style="vertical-align:top;padding:0;border-collapse:collapse;padding-right:5px;font-size:20px;line-height:30px"> <span style="font-family:Arial,sans-serif;padding:0;font-size:20px;line-height:30px;vertical-align:middle"> <a href="$issue.url" style="color:#3b73af;text-decoration:none" target="_blank">${issue.get("summary")}</a> </span> </td> </tr> </tbody> </table> Email body goes here </body> </html> |
And the email will look like this:
...