...
Prevent/Inhibit status from the customer
Note |
---|
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.
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).
...
Code Block |
---|
#set($inhibitThisStatus = "In Progress") |
Inhibit
...
if update is the same
Code Block |
---|
#if($newStatus == $inhibitThisStatus) #if($oldStatus == $newStatus) $jemhUtils.setInhibitSending(true) $jemhUtils.setInhibitSendingReason("Status Notification is inhibited") #end #end |
...
Masquerade “To Do” and “Waiting for support” as “In Progress”
If the issue was already in progress then inhibit the notification and the only notification was a status update then inhibit the notification.
When the issue first transitions to “In Progress” or changes from “In Progress” to different status not listed in the list
$masqueradeAsInProgress
then continue with notification
Code Block |
---|
#macro(customerVisibleStatus $displayStatus)
#set($displayStatus = "")
#set($oldStatus = "")
#set($newStatus = "")
#set($masqueradeAsInProgress = ["Todo", "Waiting for support"])
#if ($!changelog)
#set ($changeList = $changelog.getRelated("ChildChangeItem"))
#foreach($changeListItem in $changeList)
#if($item.getString("field") == "status")
#set($newStatus = $item.getString("newString"))
#set($oldStatus = $item.getString("oldString"))
#end
#end
#if ($masqueradeAsInProgress.contains($newStatus))
#if($masqueradeAsInProgress.contains($oldStatus) && (changelog.size() == 1))
$jemhUtils.setInhibitSending(true)
#else
#set($displayStatus = "In Progress")
#end
#end
#end |