Calculate and store duration of state field

si21
Tera Guru

Hi experts, 

How can we calculate and store the duration of a particular state (ex. 'On- Hold' state) in a custom field.

or can we achieve this using PA or reporting?

 

TIA.

2 ACCEPTED SOLUTIONS

AndersBGS
Tera Patron
Tera Patron

Hi @si21 ,

 

No, you should instead create a metric definition to capture the state duration on a specific table, to e.g. capture the "on hold" duration. You can read more about metric definition here : https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/time/reference/...

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

View solution in original post

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @si21 

 

There are OOTB metrics available

 

LearnNGrowAtul_0-1706180536861.png

 

*************************************************************************************************************
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]

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

View solution in original post

2 REPLIES 2

AndersBGS
Tera Patron
Tera Patron

Hi @si21 ,

 

No, you should instead create a metric definition to capture the state duration on a specific table, to e.g. capture the "on hold" duration. You can read more about metric definition here : https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/time/reference/...

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @si21 

 

There are OOTB metrics available

 

LearnNGrowAtul_0-1706180536861.png

 

*************************************************************************************************************
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]

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