Book Image

JIRA 6.x Administration Cookbook

By : Patrick Li
Book Image

JIRA 6.x Administration Cookbook

By: Patrick Li

Overview of this book

Table of Contents (16 chapters)
JIRA 6.x Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating custom e-mail templates


So far, we have seen how to set up notification rules and create custom events. The last part of the puzzle is the e-mail templates used by JIRA while sending out notifications.

In this recipe, we will create our own e-mail templates that can be used by custom events.

How to do it…

All mail templates are stored in the <JIRA_INSTALL>/atlassian-jira/WEB-INF/classes/templates/email directory, and generally, for each event in JIRA, there are three template files:

  • The Subject template: This is the template file for the e-mail's subject line, which is stored in the subject subdirectory

  • The Text template: This is the template file for e-mails sent in the text format, which is stored in the text subdirectory

  • The HTML template: This is the template file for e-mails sent in the HTML format, which is stored in the html subdirectory

To start creating our own e-mail templates, we first need to create the three files mentioned in the previous list of template files...