Report to look for P2 incidents

pramodkumar
Tera Expert

Hi All,

 

I am looking to create a report to find p2 incidents even if the priority changes at anytime. Just a report to capture priority changes of incident if it is ever marked as p2.

 

 

Thanks!

7 REPLIES 7

Kai Tingey
Tera Guru

You could try and capture it with a metric definition.

Here is a thread similar to your need, you can probably use this and adjust accordingly

 

https://www.servicenow.com/community/developer-forum/priority-duration-metric-calculation/m-p/187828...

 

you could also try something like the below with a database view with sys_audit and incident, however I found when i tried something similar that it was painfully slow and i didn't want to risk impacting performance on the instance.

 

https://www.servicenow.com/community/platform-analytics-articles/audit-report-for-user/ta-p/2299541

AndersBGS
Tera Patron
Tera Patron

Hi @pramodkumar ,

 

1. Create a metric definition for priority

AndersBGS_1-1698223592741.png

2. Definition should look like:

 

AndersBGS_2-1698224540040.png

You can afterwards create a report based in the incident_metric table:

 

AndersBGS_0-1698223453402.png

 

With the following conditions:

 

AndersBGS_3-1698226615737.png

 

If you want to limit the metric captured in the metric definition, a javascript can be added to the definition itself.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

 

 

 

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/

I need to find all incidents if ever it is a P2. The current priority can be P2 or the current priority can be P1, P3 or P4 but it was P2 previously

Anders solution will fit your needs. 

 

The metric definition will capture all priority changes on the incident record, so you can report on all where the priority is 2 and it will show you any incident that spent time in the state of priority = 2.

 

e.g. this is a similar definition we have for assigned to duration, you can see this one incident was bounced around a bit (by me, to use as an example) and it's capture everyone who spent time assigned to it. same principal will work for priority.

KaiTingey_0-1698277152996.png