SLA Definiton filter conditons

tulasi8
Tera Contributor

Hi Community,

 

We currently have a notification configured for "SLA Warning Breached" on the task_sla table. Our requirement is to suppress this breached notification for a specific catalog item. To achieve this, should the filter condition be applied within the notification configuration on the task_sla table, or should it be handled within the SLA Definition associated with the sc_req_item table? 
 
Regards,
Tulasi.
4 REPLIES 4

tulasi8
Tera Contributor

Ankur Bawiskar
Tera Patron

@tulasi8 

this notification "SLA breached Parm" is linked with event "sla.warning.breach.parm"

Use advanced notification condition and script and check the task is for which RITM and what's the catalog item for that

var gr = new GlideRecord("sc_req_item");
gr.addQuery("sys_id", current.task);
gr.addQuery("cat_item.name", "Your item"); // give your catalog item name here
gr.query();
if (gr.hasNext())
    answer = false; // don't send if the RITM belongs to this particular item
else
    answer = true; // send all other time

55.png56.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar I made the changes in advanced script in dev. For testing purpose i created a request for that particular catalog item. But no sla is being attached after creation of ritm. 

tulasi8_0-1781169316306.png

 

@tulasi8 

the notification you updated has nothing to do with the SLA not getting attached

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader