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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2009 03:51 PM
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 Workedto drop the update based on incident state, but I'm looking for a solution that is visible to the user.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2010 10:57 AM
Can this be adjusted to pause when the incident state is "Resolved?"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2010 12:59 PM
Yep. Just put an 'if' statement around everything but the onLoad call to check the state.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2011 06:54 AM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2011 07:02 AM
Mark, your link is broken ... 😉 ct

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2011 07:20 AM
Should be better now. Give it another try.