Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Section


Column
width70%

Email notifications

R4J can send email notifications to selected users everytime every time a suspect is triggered.

The notifications can be send to one or more of the following users:

  • the assignee of the issue that triggered the suspect
  • the reporter of the issue that triggered the suspect
  • specific users

By default the email notification contains all available information regarding the suspect. This includes the name and key of the issue that triggered the suspect, basic information about the user who made the changes leading to the suspect as well as linked issues that might be affected by the changes. 



Column
width30%


Panel

On this page:

Table of Contents
indent15px
exclude(result|issue|suspectUser|suspects|XML Field Description).*

Related pages:

XSLT Reference




Enable email notifications

Email notifications can be configured seperately separately for each project. See Suspect Configuration for more information.

To disable email notifications for a project you can just uncheck un-check all recipients in suspect configuration view.

Configure a project's email address

The email notifications will be sent from the corresponding project email address.

This address is part of the JIRA Jira project settings. See Configuring a project's email address for more information.

Customizing email content

Just like JIRA Jira itself, R4J generates emails in reaction to specific events. But instead of the Apache Velocity template engine, R4J is using XSLT for generating email notifications. XSLT stands for 'Extensible Stylesheet Language Transformations' and can be used to transform XML documents into other formats. The mails emails are generated by R4J in HTML format using a given template written in XSLT together with a XML document containing all nessecary necessary information regarding the suspect.

How to customize email templates

  1. Log in as JIRA Jira Administrator
  2. Choose Image RemovedImage Added> Add-ons
  3. Select R4J - Requirements Management for Jira E-Mail Templates from the sidebar
    (info) Keyboard shortcut 'g' + 'g' + start typing 'E-Mail Templates'
  4. Select an email the Suspect Notification email template from the dropdown drop down menu to edit(lightbulb) Currently R4J only sends notifications in case of a suspect therefore 'Suspect Notification' is the only template that can be edited
  5. Create/Edit a template within the textarea text area right below the dropdown drop down menu
  6. Click on the Save button to save the template

You can also display a preview of your template by clicking the Preview button and reset the template shown in the textarea text area back to the default one by clicking the Reset button.

Info

While it's possible to select the recipients seperately separately for each project, the email template will apply globally to all projects used with the R4J plugin.

Template Data Structure

Code Block
languagexml
firstline1
titleXML represantation of the data regarding a suspect
linenumberstrue
collapsetrue
<result>

  <baseUrl>Url to 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>

XML Field Description

result

Top level element for the data regarding the suspect.

FieldDescription
baseUrl

Url to your JIRA instance

instanceNamename of your JIRA instance
issuethe issue that triggered the suspect
suspectUserthe user who made the changes leading to the suspect
suspectTimedate and time of the changes
suspectsa list of all issues linked to the issue that triggered the suspect

issue

FieldDescription
keythe JIRA issue key
summarythe issue summary
descriptionthe issue description
typethe issue type
linka formatted link to the issue

suspectUser

FieldDescription
usernamethe username
displayNamethe user's full name
linka formatted link to the user

suspects

a A list of all issues linked to the issue that triggered the suspect. Contains one or more objects of type issue.