ITSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 09:51 PM
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?
- 633 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 11:53 PM
Hi @mahesh009
A business rule or the SLA (Service Level Agreement) feature can be utilized to track state changes:
- SLAs can be used by attaching a SLA Definition with Duration to the incident states you want to track.
- Another option is to write a Business Rule that starts whenever the state shifts.
- The sys_updated_on and state fields should be captured in this rule and logged to a custom table for reporting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 12:13 AM
Hi @mahesh009
you can configure the metric definitation [ table : metric_definition ] for "on hold" duration calculation
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 12:19 AM
Hi @mahesh009
You can track state changes by using the SLA (Service Level Agreement) feature or by setting up a business rule:
To implement SLAs, define an SLA with a specific duration and link it to the incident states you wish to monitor.
As an alternative, you can create a Business Rule that activates on state changes.
In this rule, capture the sys_updated_on and state fields, and record them in a custom table for reporting purposes.
Thanks, and Regards
Vishaal
Please mark this response as correct or helpful if it assisted you with your question.