- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2024 03:06 PM
I am trying to create a report that will show me incidents that were initially assigned to "ABC" assignment group, but they were reassigned to some other group.
I do not care what assignment group the incident was reassigned to.
I want to know ONLY the incidents that were initially assigned to "ABC" assignment group.
I don't need to know how many times it was reassigned.
I would like to filter on the date the incident was initially assigned to ABC group.
My problem is that yes, I can get a report to show me Incidents that have a reassigned count >1 and that at some point it was/is assigned to ABC. I don't want that.
I have searched the forums and there are "close" answers to this, but nothing that I can find that gives me a simple answer to the question. "How many times was "ABC" group assigned an incident last month and they had to reassign it?"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 09:02 PM
HI @Amber Anten ,
I trust you are doing great.
-
Create an Incident Metric Definition:
- Define a metric that captures the initial assignment group of incidents.
- Ensure that this metric is populated only upon the initial assignment and remains unchanged throughout the incident's lifecycle.
-
Implement the Metric Logic:
- Use Business Rules or Script Includes to populate the metric field upon the initial assignment of the incident.
- Ensure the metric field remains static once populated, capturing the initial assignment group.
-
Create a Report:
- Utilize the incident metric created to filter incidents initially assigned to the "ABC" group.
- Compare the current assignment group with the initial assignment group to identify incidents that were reassigned.
- Exclude incidents that are still assigned to the "ABC" group.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 11:40 PM
Hi @Amber Anten ,
Yes, you have understood it correct.
Below is an incident_metric for specific assignment:
The code utilized is:
// variables available
// current: GlideRecord - target incident
// definition: GlideRecord - (this row)
if (current.assignment_group.sys_id == '97a2b0616fc331003b3c498f5d3ee437') {
createMetric();
}
var assignment = current.assignment_group.DisplayValue;
function createMetric() {
var mi = new MetricInstance(definition, current);
var gr = mi.getNewRecord();
gr.field_value = current.assignment_group;
gr.start = current.sys_updated_on;
gr.calculation_complete = true;
gr.insert();
}
(remember to update the sys_id of the assignment group.
This will give you below:
So basic, a metric will be created when incidents is assigned to Service Support assignment group.
Now then just create a report based on the incident_metric table:
With below conditions:
Which will give below:
Above refers to, that the assignment group is "Hardware", but the incident has been assigned earlier to "Services Support.
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 02:50 PM
Hi @Amber Anten ,
unfortunately not, I don’t see any good solution to get this historical.
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 04:14 PM
I'm just going to do a one-time data dump for the history (just need the last 3 months) and manipulate in Excel, but at least now it works going forward! I appreciate all your assistance! I feel so accomplished. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2024 09:54 AM
This was helpful, thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 09:02 PM
HI @Amber Anten ,
I trust you are doing great.
-
Create an Incident Metric Definition:
- Define a metric that captures the initial assignment group of incidents.
- Ensure that this metric is populated only upon the initial assignment and remains unchanged throughout the incident's lifecycle.
-
Implement the Metric Logic:
- Use Business Rules or Script Includes to populate the metric field upon the initial assignment of the incident.
- Ensure the metric field remains static once populated, capturing the initial assignment group.
-
Create a Report:
- Utilize the incident metric created to filter incidents initially assigned to the "ABC" group.
- Compare the current assignment group with the initial assignment group to identify incidents that were reassigned.
- Exclude incidents that are still assigned to the "ABC" group.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 04:34 AM
Hi @AndersBGS
If have few assignment group and want to get the count for that particular group how many time Incident has been reassigned .
Then how should we do it.