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

Not applicable

I'm trying to pause the timer when the task is closed, but an itil user is going back to key additional information (SLMs love doing this).

This is starting to skew our time tracking. Just wondering if somebody knows how to stop the timer using a client script? (Simulate an onClick event?)

I've found "Toggle Timer Field by Field Name":

http://wiki.service-now.com/index.php?title=Toggle_Timer_Field_by_Field_Name

I know I can also update the business rule

Incident Time Worked
to drop the update based on incident state, but I'm looking for a solution that is visible to the user.
11 REPLIES 11

Can this be adjusted to pause when the incident state is "Resolved?"


Yep. Just put an 'if' statement around everything but the onLoad call to check the state.


Mark Stanger
Giga Sage

I just created an updated script for this that I think will be a little bit easier to understand. See SNCGuru for details.
http://www.servicenowguru.com/scripting/client-scripts-scripting/pausetoggle-time-worked-field/


Mark, your link is broken ... 😉 ct


Should be better now. Give it another try.