The CreatorCon Call for Content is officially open! Get started here.

How to Calculate overall time duration on case form

mania
Tera Contributor

Hi,

 

I have a requirement, I have a field called Time worked once I click to start play button beside the Time worked field the time should be run and once I close the case form it should stop the time automatically and the calculate overall time and added to the Time worked Tab.

I have tried a lot but not getting proper solution.

Can you please anyone suggest script for that. It will be helpful.

 

mania_0-1706696466433.png

mania_3-1706696502254.png

Thanks in Advance!

7 REPLIES 7

Hi @mania 00:00 means mid night? 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG 

When agent opens the case, time should not start automatically. He should be able to manually start the timer and the timer starts. If the user/agent is updating the ticket, and the time worked is 00:00:00, add a info message (Please fill the time worked before updating the ticket) and abort the action.

I have stopped the timer automatically but  I need script for that remaining part.

Can you please help on that, It will be helpful.

 

Thanks!

Mania

Sorry mate, not a coder so helpless.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************