Groovy and Notification Examples
Summary:
Can anyone share their trigger and groovy script for common notifications for HR Help Desk?
I have been able to create a few around changed attributes, like when a queue is changed, or when an SR gets assigned or reassigned, but I am looking for triggers around messages, and to the team of a queue when an SR is created but has not been assigned. I did you the examples from Oracle, but expanded on the messages
SR Assigned
Trigger : Before Update
if (isAttributeChanged('AssigneeResourceId')) {
try {
def recipientPartyId = AssigneeResourceId
def messageText = '"SR' + SrNumber + ' - ' + Title+'" has been assigned to you in queue "' + SvcQueue?.QueueName+'"'