Versions Compared

Key

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

...

Code Block
#set ($recipientType = $jemhUtils.getRecipientType().name())
<p>recipientType: $recipientType</p>
#if ("$recipientType"=="REPORTER" || "$recipientType"=="REQUEST_PARTICIPANT" || "$recipientType"=="EMAIL_CUSTOM_FIELD" || "$recipientType"=="OTHER")
 #set ($serviceDeskUpdateFields = ['issuetype','summary'])
 <h3>Customer Notification</h3>
#else
 #set ($serviceDeskUpdateFields = ['issuetype','summary','description','customfield_10200', 'security', 'labels'])
 <h3>Jira Notification</h3>
#end

The HTML content above could also include the entirety of the macro call for further customization:

Code Block
#set ($recipientType = $jemhUtils.getRecipientType().name())
<p>recipientType: $recipientType</p>
#if ("$recipientType"=="REPORTER" || "$recipientType"=="REQUEST_PARTICIPANT" || "$recipientType"=="EMAIL_CUSTOM_FIELD" || "$recipientType"=="OTHER")
 #set ($serviceDeskUpdateFields = ['issuetype','summary'])
 <h3>Customer Notification (less)</h3>
#jsdBodyDelimeter()
#jsdReplyMarkerHint()
#jsdIssueLinkAndDisableNotifications()
#renderParticipants()
#renderServiceDeskSignature()
#inhibitSendingConditions()
#else
 #set ($serviceDeskUpdateFields = ['issuetype','summary','description','customfield_10200', 'security', 'labels'])
 <h3>Jira Notification (more)</h3>
#jsdBodyDelimeter()
#jsdReplyMarkerHint()
#jsdMessageContentCreated()
#jsdMessageContentUpdated()
#jsdIssueLinkAndDisableNotifications()
#renderParticipants()
#renderServiceDeskSignature()
#inhibitSendingConditions()
#end

(info) Remember that to preview a template in the context of a given user, use the JEMHC > Notifications > Preview (where a recipient can be selected) rather than the “Template Set Preview” (an improvement exists to make this possible on Template Set Preview).

...