We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to get the metric duration value to a incident duration field

Roshini
Giga Guru

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.

 

Roshini_0-1754294941100.png


But the values are not getting updated. Can I get a solution for this

 

4 REPLIES 4

Shruti
Giga Sage

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.

Shruti_0-1754296272383.png

 

Ankur Bawiskar
Tera Patron

@Roshini 

there is already a Duration field on Incident table and this BR sets value in it.

why you want another custom field?

AnkurBawiskar_0-1754298084374.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Roshini 

Thank you for marking my response as helpful.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

AndersBGS
Tera Patron

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/