Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

populate first response time

Hitesh targe
Tera Expert

Hello Experts,

I have a requirement to Populate "First Response Time"(field in case) for Cases

First Response time is the Time Stamp of when an Internal/ITIL user updates the ticket (Does not have to be time assigned BUT the time an internal person updates and SAVES).

Please suggest

2 REPLIES 2

Jon Barnes
Kilo Sage

I would create a before update business rule, with a condition where first response time is empty.



in the script write something like:



if (gs.hasRole('itil') && !gs.hasRole('admin')) {


  current.setValue('field_name', gs.now());


}


Celliven
Giga Expert

Hi Prasa



As the First Response Time is set by a business rule, you can modify the conditions to reflect the sort of update you want.



Such as removing the requirement for a state change.



find_real_file.png



Hope that helps



Chris