Our new Appfire Documentation Space is now live!
Take a look here! If you have any questions please email support@appfire.com
Email templates
This document explains the different email templates that 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:
Blank and Basic templates
With the Basic or Blank templates, 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:
<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
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
When 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:
<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: