How to get the metric duration value to a incident duration field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 01:09 AM
I have a requirement to get a duration field in incident table, where it calculates the duration from incident created to resolved. I can see an OOB metric definition for the same in instance which calculated the duration.
Metric definition name" Create to Resolve Duration". I need the value in duration of this metric to be populated in the field that i have created in the incident table.
Am writing after business rule for the below code.
But the values are not getting updated. Can I get a solution for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 01:31 AM
Hi @Roshini ,
There is a OOTB Duration field on incident table which gets updated when incident is resolved. No need to create a custom field / business rule to update duration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 02:01 AM
there is already a Duration field on Incident table and this BR sets value in it.
why you want another custom field?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 10:37 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 02:15 AM
Hi @Roshini ,
agree with @Ankur Bawiskar and @Shruti , don’t create a customization for something that already exists OOTB.
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/