Metric definition to calculate time difference between two state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 07:36 AM
Hello Experts,
I have a requirement to calculate the time difference from 'on hold' to 'in progress' for incident records.
I am aware of the duration calculation option in metric definitions, however it just shows the time duration for individual state.
Is there a way to use the metric definitions scripting to calculate and capture the time difference between 'on hold' to 'in progress'?
Any suggestions would be much appreciated!!
Thanks in advance.
- Labels:
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2020 05:54 PM
I just wanted to check-in on this and see how things were going for you.
If my reply above helped answer or guide you correctly, please mark it as Helpful & Correct.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 04:41 PM
I just wanted to check-in on this and see how things were going for you.
If my reply above helped answer or guide you correctly, please mark it as Helpful & Correct.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 03:37 AM
I would only create those extra fields if you plan to use those fields in your lists, conditions or filters.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 03:42 AM
For this use case I would either use a (scripted) metric or an SLA Metric if you need to exclude states or have specified work hours that need to be taken into account.
See below for an example scripted metric that comes out of the box:
In the above case the metric is created when a certain state is reached and then calculated from open. You could change that to create a metric from the beginning state and than add the logic to update/complete it when it reaches the end state.
-David