- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 01:56 AM
I want to create a timer field same as Time Worked on Task. but i could not find such variable name under type.
Help me to create a timer field. Thanks in Advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 02:15 AM
Timer field is invisible in OOB configuration, i.e. no new fields can be created as a timer field. Check Field Classes (sys_glide_object) table to verify that.
But you can make it visible by running a Background script:
var gr = new GlideRecord("sys_glide_object");
gr.addQuery("name", "timer");
gr.query();
if (gr.next()) {
gs.log("found");
gr.visible = true;
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 04:11 AM
how can i code it if i want to start/pause timer automatically depending upon state.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2019 11:42 AM
any updates on this. We need to do that same thing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2019 06:46 AM
Hi,
Check out this link
https://www.servicenowguru.com/scripting/client-scripts-scripting/pausetoggle-time-worked-field/
Regards,
Aakash Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2020 07:11 AM
Hi Aakash Shah,
Can you please help me on the post which I had made
https://community.servicenow.com/community?id=community_question&sys_id=aa6f9ebb1b23d810d2ccea89bd4bcbef