Need help to build a report by Incident History.

Community Alums
Not applicable

I need to build a report on Incident history data. When I was looking at the "sys_audit" table, it was huge and when applied filters it was taking so much time and finally transaction failed.

One ticket worked by different assignment groups and their time stamps,.

find_real_file.png

Need best ideas to build something like the screen shot.

Thanks,

Rajini

1 ACCEPTED SOLUTION

Uncle Rob
Kilo Patron

Go to your Metric Definitions Module


find_real_file.png



Check to see if "Assignment Group" on Incident table is active (it should be by default).


That'll have a related list showing you all the times an Assignment Group has changed, what date the change happened, and the user who made the transaction.



Assuming its active, you can also build a report on the "Incident Metrics" table (really a database view that's been created for this purpose since way back when).
Add a condition to a report on the Incident Metrics table where Definition = "Assignment Group" (but since there's possibly multiple, pick the one for the Incident table)



find_real_file.png


View solution in original post

6 REPLIES 6

Uncle Rob
Kilo Patron

Very very important lesson here for taking the long view on platform architecture.



We should never ever report on the history table.   I mean... if the *LEGAL* department asks, maybe... but in all other cases design should have been considered first.


Take a step back, look at the fields where stakeholders plausibly would report transactions over time (most of them are already covered in the Metric Definition table).



Aside from just tracking the date, value, and person who made the change, it can also track durations... giving you neat little windows into times in each state, assignment group, assign to, etc.


Community Alums
Not applicable

Thank you Robert. Just applied your solution, it worked great exactly as we wanted it..



Rajini