how to view response time in incident list.

padmaja9
Tera Contributor

Hi Team,

In incident list, we can able to access the response time and sla start fields related to task sla but the values are empty.

Is there any way to obtain their values from the respective tables and view them in incident list?

find_real_file.png

 

From the above screenshot we want the values of response time and other sla related fields in incident list. Help us in achieving the requirement.

Regards,

Padmaja.

1 ACCEPTED SOLUTION

Hi Padmaja,

Since that is the custom field you created are you populating it via some BR script etc

Also it should be duration field and not date/time as you want difference of 2 date/time values

you can use this BR to populate that field

BR: After update

Condition: Assigned to changes && current.u_response_time == ''

Script:

(function executeRule(current, previous /*null when async*/) {

var opened = new GlideDateTime(current.sys_created_on);
var now = new GlideDateTime();
var duration = GlideDateTime.subtract(opened, now);

current.<your_field> = duration;

})(current, previous);

Regards
Ankur

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

View solution in original post

9 REPLIES 9

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi padmaja,

please activate this system property mentioned in the procedure described at the official documentation below:

https://docs.servicenow.com/bundle/paris-platform-user-interface/page/use/using-lists-v3/task/config...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Is it empty for all records?

Regards
Ankur

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

Hi Ankur,

 

Yes. its value is null for all the records.