SLA Breach time

Anna L
Tera Contributor

Trying to insert a field in incident notification:

1. SLA Due Date, which is essentially SLA breach time? How would I do it? Is it a dot walk or a mail script? Suggestions anyone?

Note - Currently ${sla_due} doesnt work, it shows UNKNOWN.

12 REPLIES 12

jberk
Giga Expert

If this is a notification off the incident table you would have to dot walk to task_sla and use the column name for Breach Time. Keep in mind this will be empty until the SLA is actually breached. If you are looking for the date/time the SLA is expected/going to breach then you used to be able to just use the "SLA due" field on the incident table. I know when they introduced the concept of multiple SLA's it stopped working and not sure off the top of my head if anything has been done with it OOB since.   That being said, I have previously written logic to populate that field with the correct info by restricting it to only looking at the SLA I cared about. Hope this all helps!



{$task_sla.planned_end_time}


Anna L
Tera Contributor

In Notification, I did this:



SLA Due: ${task_sla.planned_end_time}




The output is generating is:



SLA Due:



Its not displaying anything 😞



Chuck Tomasi
Tera Patron

The SLA Breach Time is stored in the planned_end_time field.


find_real_file.png



Which means you should be able to get it from



${planned_end_time}



In your notification.


Scripting for Email Notifications - ServiceNow Wiki


Email Notifications - ServiceNow Wiki


In Notification, I did this:



SLA Due: ${task_sla.planned_end_time}




The output is generating is:



SLA Due:



Its not displaying anything 😞