Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

ITSM

mahesh009
Tera Expert

I need to track how long an incident stays in each state for reporting purposes. Is there a way to log this automatically in ServiceNow?

7 REPLIES 7

Ramesh_143
Giga Guru

Hi @mahesh009 ,

You can use the SLA (Service Level Agreement) feature or create a business rule to track state changes:

 

  1. To use SLAs, configure an SLA Definition with Duration and attach it to the Incident states you want to track.
  2. Alternatively, create a Business Rule that triggers whenever the state changes. In this rule, capture the sys_updated_on and state fields and log them to a custom table for reporting.

    Thank you,
    Ramesh 

AndersBGS
Tera Patron
Tera Patron

Hi @mahesh009 ,

 

I would advise you to utilize incident_metric based on the state, as this will provide you with what you're looking for. I have created below as an example:

AndersBGS_0-1729576316008.png

 

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/

Aniket Chavan
Tera Sage
Tera Sage

Hello @mahesh009 ,

You can definitely track how long an incident stays in each state for reporting purposes! As @Harish Bainsla mentioned, I recommend checking out this article for a detailed guide on how to achieve this.

 

Key points from the article:

  • There’s an out-of-the-box metric definition that tracks the duration when the 'incident state' changes.
  • You can find this metric definition by navigating to metric_definition_list.do and looking for Number = MTRC0000004 and Name = Incident State Duration.

If you want more detailed steps on creating a report from this metric, definitely go through the article linked below:

How to create a report to track total time duration when the field "incident change" changes using m...

 

Here are a few other informative links that might help you as well:

Let me know if you have any questions!

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.


Regards,
Aniket