Introduction and
...
prerequisites
JEMH can replicate the Customer Visible Status by taking advantage of the following existing functionalities:
Customizing Email Templates
Velocity Scripting: https://thepluginpeople.atlassian.net/wiki/spaces/JEMH/pages/2850876/Customize+Email+Templates#Macros
Template Sets: /wiki/spaces/JEMH/pages/2850840
JSM Customer Notifications: https://thepluginpeople.atlassian.net/wiki/spaces/JEMH/pages/1210449949/Use+JEMH+For+JSD+Notifications#How-To-Set-Up-Customer-Notifications?
Inhibiting Email NotiicationsNotifications: Prevent /inhibit sending of a notification (Issue Event or Postfunction)
...
We suggest that you create these scripts as a Macros for more info on Macros here: https://thepluginpeople.atlassian.net/wiki/spaces/JEMH/pages/2850876/Customize+Email+Templates#Macros
Setting
...
status variables
To able to replicate the Customer Visible Status functionality you will first need to know what the new updated status typically used for the Generic and Updated Issue Events.
...
Prevent/Inhibit status from the customer
...
These options will inhibit the notification if the Status is updated regardless of any other changes to the Issue for example comments or custom field updates.
You may want to masquerade the status instead or check if the only item in the is the status change see Examples section.
Note |
---|
Make sure you review which changeList change-list items are triggered before inhibition. For example if you want to inhibit a Resolved Status there may be more changeList change-list items than expected. |
As test show the
...
change-list items during a status change by running in a test notification:
Code Block |
---|
#set ($changeList = $changelog.getRelated("ChildChangeItem")) #foreach($changeListItem in $changeList) $changeListItem $changeListItem #end |
Output in test notification email:
Code Block |
---|
[GenericEntity:ChangeItem][newvalue,10000][field,resolution][oldstring,null][newstring,Done][id,10119][fieldtype,jira][oldvalue,null][group,10112] [GenericEntity:ChangeItem][newvalue,5][field,status][oldstring,In Progress][newstring,Resolved][id,10118][fieldtype,jira][oldvalue,3][group,10112] |
Notice there are two change log items with fields: resolution and status. Therefore if you want to inhibit if the only change was a resolved status type you will need to take into consideration the field “resolution”.
If you want to prevent customers from receiving updates to particular statuses then you will need to set an inhibition more information here: Prevent /inhibit sending of a notification (Issue Event or Postfunction).
...