Generate Report using metric and databse view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 03:39 AM
How can I calculate the duration between specific state transitions in a record, such as the time spent from 'Open' to 'Work in Progress' and from 'Work in Progress' to 'Closed'? I want to achieve this using Metric Definitions Any guidance or best practices would be appreciated."
Note: avoid creation of field in form for keep the value of duration.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 08:07 PM
How can I create a metric on the 'state' field to capture the duration between the 'New' and 'Work in Progress' states only? I want the metric to trigger when the state changes from 'New' and stop when it reaches 'Work in Progress,' without recording other state transitions. Any best practices or guidance would be appreciated.
@Ankur Bawiskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:16 PM
You can use PA (KPI's) which is quick easily available.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 04:00 AM
Hi AG
actually in my project they are not suggesting go with KPI
i tried with script calculation in metric definition table
i wrote the script like this
I have implemented a script calculation in the Metric Definition table to create entries in the Metric Instance table. While the script works fine in the Background Script (logs confirm processing records), no entries are being created in the Metric Instance table.
could you please help me to get that