Create a Metric Definition to capture first assignment group

Patrick Cavanau
Tera Contributor

Hello, 

 

We have a requirement to capture the first assignment group for an incident and doing it using an metric definition and writing the script. I have looked online and have not been able to find much on this topic so any help would be greatly appreciated. 


Thank you

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Patrick Cavanau 

 

https://www.servicenow.com/community/developer-forum/how-to-capture-first-assignment-group-in-a-repo...

 

https://www.servicenow.com/community/platform-analytics-forum/how-to-get-the-first-ever-assignment-g...

https://www.servicenow.com/community/developer-forum/metric-to-get-first-assignment-group-for-an-inc...

*************************************************************************************************************
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]

****************************************************************************************************************

@Dr Atul G- LNG  Thank you for the response. A lot of these are focused more on if the first assignment group is a specific group, and I was hoping to just get the first assignment group captured in the metric no matter what it is. I am not sure if there is anywhere that I can find the script for this.

 

Thank you

Hi @Patrick Cavanau 

 

This isn't something that's easy to capture as part of reporting using out-of-the-box functionality. 

You'll want to add a new field to the table called u_first_assignment_group (or something similar) and then write a business rule to capture that data. 

This will only help you going forwards, and you won't be able to report on historic data.

*************************************************************************************************************
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]

****************************************************************************************************************