How to calculate the total time taken by a assignment group to close the HR case in a custom field

rakshith_shetty
Tera Contributor

Hi team,

 

We have a requirement to calculate the time taken by the last assignment group to resolve the HR case,  from the moment the ticket was assigned to that group. I want to track the total duration from when it was assigned to that particular group until it is Closed we want to store the duration in a custom field. I tried with a metric, but it unfortunately captures the total duration for all reassigned groups as well. Therefore, we are considering using a business rule along with a custom field for this purpose. Could someone assist me with the script needed for this

 

Regards

Rak**bleep**h

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@rakshith_shetty 

you can have a custom field to hold when the HR case as assigned 1st time i.e. when Assignment Group changed and it was not empty, then you can refer the OOTB business rule on incident table and create something similar for HR case to populate the closed duration

AnkurBawiskar_0-1748867932321.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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@rakshith_shetty 

you can have a custom field to hold when the HR case as assigned 1st time i.e. when Assignment Group changed and it was not empty, then you can refer the OOTB business rule on incident table and create something similar for HR case to populate the closed duration

AnkurBawiskar_0-1748867932321.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