I want to know how many times an incident was reassigned inside the same assignment group.

Spartan_snow
Tera Expert

 

Hello, everyone.

I want to create a report that shows how many times an incident was reassigned, and how many times a user was assigned to another user within the same group.

 

Can we use performance analytics to meet this requirement? or using metric_instance table?

 

Example - Indian-Cricket-Group

Name                                                  Count of Assigned From                            Assigned To

Virat Kohli4Empty (3), Rohit Sharma (1)
MS Dhoni3Empty (2), Hardik Pandya (1)
Rohit Sharma2Virat Kohli (2)
KL Rahul2Jasprit Bumrah (1), Rohit Sharma (1)
Ravindra Jadeja1Hardik Pandya (1)
Shubman Gill1Empty (1)
Suryakumar Yadav1Jasprit Bumrah (1)
Yuzvendra Chahal1Hardik Pandya (1)
Hardik Pandya1Virat Kohli (1)
Jasprit Bumrah1Empty (1)
 Grand Total: 19 

 

Regards,

Mayur.

2 REPLIES 2

Sumanth16
Kilo Patron

Hi @Spartan_snow ,

 

Below is an incident_metric for specific assignment:

Sumanth16_0-1729274368498.png

 

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:

Sumanth16_1-1729274395091.png

 

 

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:

Sumanth16_2-1729274395239.png

With below conditions:

Sumanth16_3-1729274411562.png

 

Which will give below:

Sumanth16_4-1729274411565.png

 

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.

 

Thanks & Regards,

Sumanth Meda

Hi @Sumanth16 ,

Thank you for your reply.

 

I'm looking for the Assigned to field value, and if I change the incident assigned to field, I'd want to get a report showing how many times I changed the assigned to and who I assigned it to, as well as how many other group members reassigned the same incident to other group members.