Report showing full assignment group history across a row for a group of Incidents

mullenr
Giga Contributor

I am in need of a report or creating a report (Washington Release) that shows Assignment Group History (including groups that may have touched an incident multiple times during it's lifecycle.  The Report format would need to be something like:

 

Number                   Reassignment Count       Assign Grp 1    Assign Grp 2       Assign Grp 3     Assign Grp 4 .....     .......   ......

INC0001234                        4                          ABC123 grp     EFG456 grp        RST123 grp      ABC123 grp     

INC0007845                        2                          RST123 grp      ABC123 grp

INC9876543                        5                          QRS666 grp     ABC123 grp      QRS666 grp      EFG456 grp    XYZ2222 

...........

........... 

6 REPLIES 6

Uncle Rob
Kilo Patron

How would you know the amount of columns to put on?  Since a ticket could be re-assigned a theoretically infinite amount of times?  And what drives the need to see it in this form specifically?

Whenever I was trying to tell the story of bad assignments, I'd simply report on the Incident_Metric table where definition = Assignment Group.  That's a log of every time the group changes, and who did it. You can get the same story, you just don't need to spend 1000 hours creating a custom solution on the platform.

UncleRob_0-1728941388911.png

 

The incident_metric table joins Incidents and metric_instances.  Its VERY important that you look at the sorts carefully.
Add sort:  inc_number (the incident's number)
Add sort:  mi_sys_created_on (the created date of the metric instance record)

Make sure your list view shows the Created (mi_sys_created_on) and not any of the other created fields.

 

Hi @Uncle Rob ,

This is super helpful! A few follow up questions

1. Any insight into how to create the incident_metric table? (We currently have the metric_instance table and incident table but not incident_metric)

1a. Is it possible to do the same for sc_task table as well?

2. Will it count toward our custom table count?

3. Will it run retroactively? (meaning we'll be able to report on incidents that have been reassigned to different groups over all time or just for group reassignments going forward?)

 

Thank you in advance!

1. Any insight into how to create the incident_metric table? (We currently have the metric_instance table and incident table but not incident_metric)
Hey @ChristinB - go to your navigator bar and type in incident_metric.list.
Its an OOB database view that isn't found on the navigator bar, so you have to manually nav to it.

1a. Is it possible to do the same for sc_task table as well?

VERY Possible but not OOB.  Before you have a DBView joining metric_instance to <whatever table you want>, you must first have Metric Definitions [metric_definition] creating Metric Instances.  Here's the OOB definitions grouped by table.  Doesn't look like there are any sc_task ones defined.  Good news is you'll get practice.
UncleRob_0-1744198137748.png

Its easy to define the Database Views since you'll have incident_metric as an example

UncleRob_1-1744198313537.png


2. Will it count toward our custom table count?

No, because its not a table, its a database view.  A database view allows you to join tables together and view the results.  It only LOOKS like a table.  This will be true even if you create your own sc_task_metrics DBView (after you build sc_task metrics mind you!)

3. Will it run retroactively? (meaning we'll be able to report on incidents that have been reassigned to different groups over all time or just for group reassignments going forward?)
Practically?  No.  A metric definition does TWO things.  It creates a new metric_instance record on a field value change its been told to watch.  But it ALSO ends a previous one if it exists.  Maybe someone has figured out how to script against the audit history to build the metric  instances but I have to be honest... that sounds risky.

The good news is (at least for incident) that there's a variety of SUPER handy metric definitions OOB.
If you want the same ones for sc_task, just replicate them and enjoy more powerful reporting going forward.

 

AndersBGS
Tera Patron
Tera Patron

Hi @mullenr ,

 

I would recommend you to utilize the incident_metric as this will shown you what you're looking for except the format is different. If you really need the format afterwards, you should export to Excel and change the layout there. 

 

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/