Reporting on Incident Metric Table For Assignment Groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 12:09 AM
Hi All,
My query is to check if an incident has been re-assigned to another team by the SD team.
Only two groups are involved SD and Infra Team. I need to get the list of incidents re-assigned to infra team by SD team.
Is there a way to do this on incident_metric table or I need to do scripting ?
Thanks in advance.
- Labels:
-
Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 12:22 AM
Hi
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2024 08:27 PM
Hi Sandeep. This is helpful. I am looking for something similar. Can I follow the same process to get a list of Incidents that were first assigned to a group based on Assignment Rules? We have Incidents that come into our Helpdesk and some of course get reassigned. We want to get an accurate count of what was assigned to the Helpdesk first. Would you have a script example that would capture this data. Appreciate any assistance that you may be able to provide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 12:22 AM
Hello.
On the metric_instance it will show you the assignment group which it was assigned to however you will not get the older assignment group on the same row.
You will need to check two rows to see which was the older assignment group and which was the new.
We have a sys_audit table which exactly achieves your requirement as it shows the old value and new value but it is not recommended to report on the sys_audit table.
Thanks.
Please mark answer correct/helpful based on Impact
Create a metric called something like Incident Touched. Use the following settings:
Script:
(You won't hurt my feelings too much if you leave it unattributed to me; that's just a standard header I put on all my scripts.)
Save the metric definition. This is a screenshot of what your settings should look like on the definition:
Now create the report. Run it against the Incident Metric [incident_metric] database view. Make sure you add the following filter conditions:
If you don't want tickets that ultimately ended up in Team Z's queue (for example, only tickets that ended up in the queue of Team A, Team B, or etc.), then add a filter for:
If you want tickets that ONLY ended up in a queue of Team A, Team B, or etc. (that is, that didn't end up in some outside queue), add a filter such as:
Personally, I would save this filter as a report source so that if you decide you want to filter it further by other criteria, you don't have to keep adding those filters first. After that, you can add whatever other filters you want, such as created between, updated after, or whatever.
When that report is run, you will get a list of tickets without duplicates that were touched by Team Z at some point and, if you added the assignment group is not Team Z filter, ended up in some other team's queue.
If you just want a count and not a list of tickets, change your report time from List to Single Score. (But I'd leave it as list at least initially to validate that you're getting back the records you're looking for.) And as a side note, the time that the ticket was initially assigned to Team Z will be in the Start field of the Incident Metric view.