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
Mega Sage
Mega 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
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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Roshini 

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.

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

AndersBGS
Tera Patron
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/