Next Gen Helpdesk:When SR Closed send Bell/Email notification to all resources worked on the tickets
Summary:
Hi Experts,
Need to send Bell notification & Email to all resources worked on the tickets when there is an close ticket. At the moment only the assign person receive notification, sometimes we are several to work together on one ticket.
Currently i am using below groovy but its sending Primary Contact:
try {
// Initialize PrimaryContactPartyId and the message text
def recipientPartyId = PrimaryContactPartyId
def messageText = "Clôture de votre demande RH - Abschluss Ihrer HR-Anfrage"
// Check if StatusCd has changed and is resolved
if (isAttributeChanged("StatusCd") && StatusCd == 'ORA_SVC_HRHD_RESOLVED') {
// Debug: Log the PrimaryContactPartyId value
println("Debug - PrimaryContactPartyId: " + recipientPartyId)
0