Additional Comments Notification Not working for ITIL and Admin roles users

p t1
Kilo Sage
Kilo Sage

Hi Team,

 

In OOB RITM when additional comments changes notofication triggers for request.requested for and watchlist users.

 

But currently notification is not triggering if request.requesed for is  itil or admin users.

 

Notification Name: Request Item commented

 

I tried changing the weight value to higher, but stills not working.

 

Thanks

 

 

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

Hello is there any advanced script written on the notification? Is this happening for all the users or specific users?

Does the notification trigger on event? if yes check BR which triggers the event and notification

share your notification screenshot as wel

Regards
Harish

Hi @Harish KM 

 

Please find below script running for above mentioned OOB notification

 

answer = true;
//Check if requested for does not have role customer
if(!gs.nil(current.request)){

var requested_for = current.request.requested_for;
if(!gs.nil(requested_for)){
var gr = new GlideUser().getUserByID(requested_for);
if(gr.hasRole("sn_customerservice.customer")){
answer = false;
}
}
}

 

PreethiKR_0-1691571190213.pngPreethiKR_1-1691571267942.png

 

PreethiKR_2-1691571324089.png

This triggers when comments updated.

But their is one BR oob this also runs when additional comments changes on RITM .

 

Business Rule : sc_req_item comment events

Notification: Request Item commented (all assignees) 

 

Notification is triggering based on role, if itil or admin it's not triggering.

 

Thanks,

 

Thanks,

 

 

Hi please verify if the users have this role sn_customerservice.customer in their profile // this will fail notification

answer = true;
//Check if requested for does not have role customer
if(!gs.nil(current.request)){

var requested_for = current.request.requested_for;
if(!gs.nil(requested_for)){
var gr = new GlideUser().getUserByID(requested_for);
if(gr.hasRole("sn_customerservice.customer")){
answer = false;
}
}
}

Regards
Harish

Hi @Harish KM 

 

User don't have that role in profile and  i checked the script in background  for one of the user who have admin role it's returning true.

 

Thanks,

Preethi

 

Thanks,

Preethi