Timer on Incident Form

Sourabh26
Giga Guru

I need to show a 15 min. of timer when the incident got first updated.

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sourabh,

What does it mean 15min of timer when incident got first updated?

Can you explain in detail your requirement?

Regards

Ankur

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

Sourabh26
Giga Guru

Hi @Ankur Bawiskar 

We had an SLA attached to the Incident. So whenever our incident got updated for the 1st time, then based on its priority the SLA will be triggered.

Now I need to show/display a 15 min. of timer on the form. So that the user who is working on that ticket have to resolve & close that ticket within 15 min (so that our SLA will not be breached).

Note : As we give any online exams then a timer will be shown always, the same thing I need to develop. 

Kunal Varkhede
Tera Guru

Hi Sourabh,

 

1. Use time worked field on incident form.

2. Write an onLoad client script showing  a field message like "Maximum time of evaluation is ....."

 

function onLoad() {
   //Type appropriate comment here, and begin script below
   g_form.showFieldMsg("time_worked","Maximum time of evaluation is 5 min or 00:05:00..");
}

find_real_file.png

 

 

3. There are a couple of properties which are available for the timer fields to play with. 

 

OR

 

You can refer below link.

 https://www.servicenowguru.com/scripting/client-scripts-scripting/pausetoggle-time-worked-field/

 

Mark Correct/Helpful answer if it help you.

Regards,

Kunal.

Please help me 

https://community.servicenow.com/community?id=community_question&sys_id=aa6f9ebb1b23d810d2ccea89bd4bcbef