Like Jira itself, R4J generates emails in reaction to specific events. Unlike Jira, R4J uses XSLT for generating email notifications instead of the Apache Velocity template engine. XSLT (Extensible Stylesheet Language Transformations) can be used to transform XML documents into other formats. The emails are generated by R4J in HTML format using a template written in XSLT together with an XML document containing all necessary information regarding the suspect.
To customize the XSLT template you must be a Jira Administrator.
Select the Jira adminstration icon > Manage apps, then select R4J - Requirements Management for Jira > E-Mail Templates from the sidebar. (Keyboard shortcut: Enter "." and start typing "e-mail templates".)
Select the Suspect Notification template from the drop down menu.
Edit the XSLT template within the text area below the drop down menu.
Select the Save button to save the template.
There are two other options:
Preview: Shows the results of applying the template to an issue.
Reset: Returns the template back to the default.
<result> <baseUrl>URL of your JIRA instance</baseUrl> <instanceName>Name of your JIRA instance</instanceName> <issue> <key>Issue key</key> <summary>Summary</summary> <description>Description</description> <type>Issue type</type> <link>Formatted link to issue</link> </issue> <suspectUser> <username>Username</username> <displayName>User's full display name</displayName> <link>Formatted link to user</link> </suspectUser> <suspectTime>Time of suspect change</suspectTime> <suspects> -> List of linked issue(s) <issue> <key>Issue key</key> <summary>Summary</summary> <description>Description</description> <type>Issue type</type> <link>Formatted link to issue</link> </issue> </suspects> </result> |