Historical Incident data for specific Assignment group

kumar22
Tera Contributor

Hi Team, 

How can I fetch incidents that were handled by Network Assignment users, meaning that at some point in the incident’s lifecycle it was assigned to a Network user? I tried creating a database view for this, but I’m not able to retrieve the data. Has anyone achieved this before and can guide me?

OrderTableVariable prefixWhere clause
100metric_instancemi 
200metric_definitionmdmd.name = mi.definition && mi.definition = 'Assigned to duration' && md.table = 'incident'
300incidentincinc.sys_id = mi.id
400sys_useruu.sys_id = mi.value
500sys_user_grmembergrmgrm.user = u.sys_id && grm.group = 'd625dccec0a8016700a222a0f7900d06'

 

Thanks in advance!

7 REPLIES 7

Rafael Batistot
Kilo Patron

Hi @kumar22 

As Admin is posible to check the historical of the incident > 'sys_history_set'

May you find those information


RafaelBatistot_0-1755120637792.png

 

If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kumar22 It will not work on this assignment if the metric was not defined earlier, as metrics only work on new data/records. Once defined, you can use the metric data to check where the assignment group name is "Network" and then find the relevant records. Not sure about the use of a database view here, since you can get this information directly from the metric itself.

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

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

Hi @Dr Atul G- LNG - We have the records in the incident_metric & metric_instance tables for the incidents. 


so where you stuck mate?

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

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