We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Time Worked

Amrit4
Kilo Sage

Hi Experts,

 

We have a field named "Time Worked" on incidents. We have a requirement to pause this timer for other states except 'In progress'. The timer should only run when state of the incident is 'In progress'.

If possible please give a composed solution.

 

Warm Regards.

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@Amrit4 

see this link and enhance it for your state field

Pause or Toggle a Time Worked Field Timer 

💡 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

I saw this post previously, but this is not working. not sure why

@Amrit4 

it requires DOM manipulation and you need to set Isolate Script Field for your client script as False

💡 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

@Amrit4 

Thank you for marking my response as helpful.

💡 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