
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 05:41 PM
So I have a need to report on all incident tickets logged originally to the IT Service Desk, simple as if an incident was logged and the first assignment group was the IT Service Desk + 1 to the total count.
Now not all incidents are logged by the IT Service Desk, to the IT Service Desk assignment queue first up - they might have been logged through the portal and been assigned the the IT Service Desk, or logged directly by the IT Service Desk, both cases should have the IT Service Desk as the first assignment group.
I have a filtered report that uses the incident_metric table to look at if an incident was ever assigned to the IT Service Desk, but it doesn't tell me if it was originally assigned to them or not?
The filter is: (this looks at incidents not updated in the last 2 weeks and were ever assigned to the IT Service Desk)
Want just all incidents where first assignment group was IT Service Desk, no matter what the current state is, or where it is currently assigned.
Thanks in advance for the help.
Solved! Go to Solution.
- Labels:
-
Performance Analytics
-
Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 06:05 PM
Hi,
For this, you may follow any one of the below
1. Create a script calculation type metric on incident table and assignment group field and write script to create a metric instance.
if (current.sys_mod_count == 0) {
if (current.assignment_group == 'SYS_ID_OF_Service_DESK')
value = true;
createMetric();
}
function createMetric(value) {
var mi = new MetricInstance(definition, current);
if (mi.metricExists())
return;
var gr = mi.getNewRecord();
gr.field_value = 'IT Support';
gr.field = null;
gr.calculation_complete = true;
gr.insert();
}
2. Create a field on incident table with name as "First Assigned Group" and create a before insert BR to update this field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 06:05 PM
Hi,
For this, you may follow any one of the below
1. Create a script calculation type metric on incident table and assignment group field and write script to create a metric instance.
if (current.sys_mod_count == 0) {
if (current.assignment_group == 'SYS_ID_OF_Service_DESK')
value = true;
createMetric();
}
function createMetric(value) {
var mi = new MetricInstance(definition, current);
if (mi.metricExists())
return;
var gr = mi.getNewRecord();
gr.field_value = 'IT Support';
gr.field = null;
gr.calculation_complete = true;
gr.insert();
}
2. Create a field on incident table with name as "First Assigned Group" and create a before insert BR to update this field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 07:52 PM
Thanks very much, used the Business Rule option and works a treat!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 08:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2021 09:40 PM