$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

By default, Jira and Service Management type system templates include in a notification all the fields that have changed during an issue update. The fields to be included can be changed without creating new custom templates. It can be done by updating the global custom macros. For issue create notification check out this how-to.

Step-by-step guide

Change global custom macros

  1. Go to Notification -> Custom Macros -> Edit. 

  2. Add the following script updating the list as necessary. 

## Specify the fields to be shown during a JIRA issue update notification
#set ($serviceJiraUpdateFields = ['issuetype','assignee','created','updated','priority','reporter', 'security','customfield_10200', 'security','labels'])
## Specify the fields to be shown during a Service Desk issue update notification
#set ($serviceDeskUpdateFields = ['issuetype','summary','description','customfield_10200', 'security', 'labels'])

The screen should look like this:

 

Once saved, it can be testing by using the Preview tool:

  1. Go to Notification > Preview 

  2. Select either Issue Update JIRA or Issue Update Service Desk template

  3. Select a preview context

  4. Hit Preview

The email now only includes the fields in the $serviceJiraUpdateFields list that have been changed during the operation. 

If other fields that the specified ones have been changed, the email will be empty (no useful information rendered) and the notification will be ignored.

This change is global and it will reflected in all system templates. It is the simplest way to define which fields to show. If you need more customization, please visit How-to Create custom Theme and Template Sets.

  • No labels