Customising JSM Email Templates

When customising a template for Customer Notifications in the editor, it will have the flexibility to use any of these values below:

 

$issue

Retrieves the TemplateIssue, like Customising Jira Notifications.

 

$issue.getReporter().getDisplayName()

This will get the name of the Reporter (An ApplicationUser Object).

 

$issue.getAssigneeUser().getDisplayName()

This will get the name of the Assignee.

 

This retrieves all Request Participant names from a Custom Field Value. This allows a list of all recipients by using all Watchers, Assignee, Reporter and Request participants. Organisations are also notified (and shown how to access below).

Accesses all watchers on the issue. Another ApplicationUser, Object type, meaning $aWatcher.getDisplayName() will return the name of each Watcher.

 

 

Get the status of the issue. This can be used to send notifications on the change of workflow status.

 

Gets the name of the user that just commented. This can be used to edit Issue Commented notifications.

 

Gets the most recent comment added to an Issue.

 

Gets the Service Management unsubscribe link for an Issue. Uses the $recipientUser to get the unique link for each user that is notified.

 

Retrieves the JSM Issue Link so all notified recipients can get an Issue Link.

The Issue Link goes to the JSM portal view of the issue.

 

This accesses the change log of all changes during the specific event, which gives the option to view all the changes, along with the changes that were made (old values compared to new values).

Using Issue Updated Event Listener for JSM Notifications

Service Management does not send Issue Updated notifications to customers like Jira does. However, JEMH can provide a ‘Default’ Issue Updated templates that can give Customers issue updated notifications in the style of Jira Service Management.

The following code will notify Users of many different events (if applicable), such as change in workflow status, Organizations being added to an issue, custom field value changes, and comment notifications. It will put all changed events into one notification if changed at once.

HTML

TEXT

 

 

Using the ‘Default’ Issue Updated notifications will send the customers a lot of notifications if the Issue is updated or worked on regularly. Service Management does not send these notifications to customers.