How to create a Metric Definition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 06:50 AM
Hi Everyone,
I am learning servicenow, can you please help me with a script on metric definition to report on number of incidents where incident priority was upgraded.
Example - I created an incident in P4 - priority and agent updated priority to P2 and after some time he updated it again to P1, now we must be able to report on all incidents where priority was upgraded from lower to higher;
Initial Priority = P4, upgraded to P3,P2,P1
Initial Priority = P3, upgraded to P2,P1
Initial Priority = P2, upgraded to P1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 07:40 AM
Best way to learn is to check few OOB setup under metric_definition table.
like : Incident State Duration
Product document : Define a metric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 07:46 AM
Hi Bhawanjit, State definition count on Incident state changes, not on priority. Well my ask is to count all incidents where priority was upgraded. please refer example given above in problem statement. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 08:12 AM
@Eddie5 : Please check below thread for approach .
Hope it helps.
Please mark my response as correct/helpful if it helps you.
Regards,
Priyanka Salunke