How to pause or stop time in field time worked

dianemiro
Kilo Sage

Hi,

I have a client script to set time worked field as read-only if the ticket is created more than a month ago. I already set it to read-only and make hidden the pause/play button but as we have a setting to Start timers automatically and mine is set to true, the time worked still ticking. May I know if there's a way to pause or stop this time? Many thanks.

1 ACCEPTED SOLUTION

dianemiro
Kilo Sage

Hi All,



I see there is now way to Pause the automatic timers so what I did is I created a business rule and set my conditions as follows:



find_real_file.png


View solution in original post

9 REPLIES 9

Hello Diane,



"glide.ui.timer.started" is property which you can find in sys_properties or you can navigate to sys_properties.list and search for "glide.ui.timer.started" and make the "Value" as false.



Thanks,


Surya Amara



PS: Hit like, Helpful or Correct depending on the impact of the response


amlanpal
Kilo Sage

Hi Diane,



Please find the useful links below. I hope these are enough to guide you to achieve your requirement.


1. Toggle Timer Field by Field Name - ServiceNow Wiki


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


3. need a way to stop time worked on new records


4. How do I "Stop" Time Worked when task is closed?



I hope this helps.Please mark correct/helpful based on impact


Hi Amlan,



Thank you for your response. However, I still have no idea what will be the code for stopping the timer plain and simple.


dianemiro
Kilo Sage

Hi All,



I see there is now way to Pause the automatic timers so what I did is I created a business rule and set my conditions as follows:



find_real_file.png


Kim Sullivan
Tera Guru

Did anyone run across a way to have this timer always start at 0 instead of the cumulative time?