How to create custom field ' Time_worked' with field type duration ?

Ujjwala1
Tera Contributor

Hello Everyone,

We have created new custom field on incident form as 'Time_worked' with field type as duration 

We want that field to work similar as OOB field present on task time with timer field type,

The requirement says field should track the time when user opens the form and it should stop running at once the state is closed, Can we achieve this ?

1 ACCEPTED SOLUTION

Also while searching if a similar thread exist on your requirement, I got the below where user have mentioned that they have got it working after following the instructions.

Please refer the same as well if this helps you to get going with your requirement:

https://community.servicenow.com/community?id=community_question&sys_id=b4e203a1dbd8dbc01dcaf3231f9619fa

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

2 REPLIES 2

shloke04
Kilo Patron

Hi,

Please follow the steps below to achieve your requirement:

1) There is an OOB BR named "Update task timer". 

2) Make a copy of this BR and replace the field name which you have created on your custom table to get it working similar to Servicenow OOB Time worked field.

 

By default this functionality is available only for Task extended tables and not for custom table which are not extending from task. Refer the doc link below for more info on this:

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/time/reference/r_TimeWorkedFields.html

 

You need to replicate the same to get it working in your scenario.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Also while searching if a similar thread exist on your requirement, I got the below where user have mentioned that they have got it working after following the instructions.

Please refer the same as well if this helps you to get going with your requirement:

https://community.servicenow.com/community?id=community_question&sys_id=b4e203a1dbd8dbc01dcaf3231f9619fa

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke