Documentation for JIRA 4.1. Documentation for other versions of JIRA is available too.
Customisations to Velocity templates or other JIRA files are not included in the scope of Atlassian Support.
In a development instance, you can play with picking up velocity file changes without a restart.
From <jira-install>/atlassian-jira/WEB-INF/classes/velocity.properties
:
Keep in mind that the next time you upgrade JIRA – or need a new installation for any reason – you will have to manually copy any changes you have made to the JSPs or tempates into the new installation of JIRA. If the JSPs or templates have changed in the newer version, you will have to port your customization into them.
JIRA generates emails in reaction to events using a templating engine. The templating engine is Apache Jakarta's Velocity. This is a relatively easy to use templating language that can pull apart java objects in useful ways. The mails are generated inside JIRA by invoking Velocity with a set of objects of relevance to the event.
To customise email content, please follow this procedure.
atlassian-jira\WEB-INF\classes\templates\email
jira\src\etc\java\templates\email
webapp\WEB-INF\classes\templates\email
html
, text
and subject
. The html
subdirectory contains the templates used to create emails in html, while the text
directory the plain text mail outs. The subject
directory contains the templates used to generate the subject of the emails. The templates are named after the event that will trigger the email.See also Adding Custom Fields to Email.