How can I add the duration of multiple metric instance records that are grouped by value ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hello Experts,
My requirement is that on the SIR record there are few fields of type glide_duration and I have created a metric definition on SIR record which runs on state change and metric records are created in the metric instance table with multiple records having duration of state (refer to the screenshots). My requirement here is that when the SIR record is resolved I need to calculate the total duration present in the metric_instance table for each state value individually and store it in the fields present in the SIR record.
To achieve this I tried an on before BR which calculates the total duration but somehow it is setting the wrong duration in the fields which are present in the SIR record.
Code used in BR:
