Metric instance state changes start and end

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 08:34 AM
Hi all,
I have created a metric where the metric type is script calculation
I need to create a metrics whenever the state changes it need to capture the start and end
for e.g: For suppose initially,
1.the case state is open so start is current time and end has to be empty
2.when the case state has goes to awaiting approval then the start has to be current time and the previous metric instance i.e. the instance record where the state has to be open that end has to be the time when the state changes to open to awaiting approval.
Can you help me how to set the start and end time in metric instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 09:55 PM
@Community Alums You can refer the current OOB metric definition when calculates the state duration on a incident record.
As mentioned in your case, it provides start and end times based on "State"
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.