How to get report of incident where Priority was changed

Ritesh kumar si
Tera Contributor

I want to get reports of incidents where Priority was changed for some particular groups. Report should include Old value and New value both.

I tried using metrics but that only gives the current value when changed. Also tried creating Database view using metrics and history tables but that was not giving proper data, since history is not reportable directly and is not preferred for reporting please help on this.

1 ACCEPTED SOLUTION

Look at the value field for previous priority, sort by start in my sample I picked a ticket that I knew was changed and group by ticket number 

find_real_file.png

View solution in original post

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can check sys_history_line table where it has old and new value; that is the only place which gives you old and new

Yes it is not recommended to use that as that table is large.

If not then you will have to create custom reference field on incident table and store the older group whenever it gets changed to newer one.

Regards
Ankur

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

Hi Ankur,

Thanks but is there any other way than creating new field.

I don't think so.

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

Tsura Andreeva
Mega Sage

check out the incident_metric table with filter on md_field = priority, group it by inc_number and active is false