Find the duration in which the field had stored a value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 04:18 AM
Hi All,
I have a requirement to find the duration in which how long the state field had been assigned to "In progress".
Saw some articles suggesting to go with metric definition. Can anyone please explain in detail on how to write the script in metric definition and how to fetch that duration value from script include?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 07:11 AM
Have you checked out the Metric Definitions that come OOTB? It's possible you don't need a script and could copy an existing definition that comes OOTB like this one:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 08:06 PM
How can I fetch this duration from a script include or business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 11:08 PM
How can I fetch the duration field in a script include from the metric definition?