In this recipe, you'll learn how to create a report that shows the number of times tickets were assigned from one group to another. For example, you could report how many tickets are being escalated from the Support group to the Sales group.
Tip: If you want to report on how much time a ticket spent in each group, see Explore recipe: Reporting on the duration of fields.
What you'll need
Skill level: Moderate
Time Required: 20 minutes
- Zendesk Explore Professional or Enterprise
- Editor or Admin permissions (see Giving agents access to Explore)
- Ticket data in Zendesk Support
Creating the report
To create the report
- In Zendesk Explore, click the reports (
) icon.
- In the Reports library, click New report.
- On the Select a dataset page, click Support > Support - Updates history, then click Start report. The report builder opens.
- Now, create a Standard calculated metric to show when tickets move from one group to another. From the Calculations (
) menu, click Standard calculated metric.
-
On the Standard calculated metric page, enter or paste the formula below into the Formula field. Add a title for the metric like Ticket assigns from Support to Sales.
Replace the IDs in the formula with the group IDs of the two groups you want to report about. To get the group IDs of your groups, make a GET request to subdomain.zendesk.com/api/v2/groups.json. Check out our documentation here for more information. In the example below, the first group ID would be for 'Support' as the previous group and the second group ID would be for 'Sales' as the new group the ticket is assigned to.
The completed metric will look like the screenshot below:IF ([Changes - Field name] = "group_id" AND
[Changes - Previous value] = "36000000xxxx" AND
[Changes - New value] = "3600000xxxxx") THEN
[Update ID]
ENDIF
Tip: If you're working in a language other than English, read this article to help you enter Explore formulas in your language. - When you are finished, click Save.
- In the Metrics panel, click Add.
- From the list of metrics, choose Calculated metrics > Ticket assigns from Support to Sales (the calculated metric you just created), then click Apply.
- Ensure the metric aggregator for Ticket assigns from Support to Sales is set to COUNT. For more information, see Choosing metric aggregators.
- (Optional) Filter the report's results by date by adding the Ticket created - Date attribute in the Filters panel.
Next steps
If you want to see the agents who are making the group update, you can add an attribute to show the agent's name.- In the Rows panel, click Add.
- From the list of attributes, choose Updater > Updater name, then click Apply.
-
From the Result manipulation (
) page, click Metric filter.
- On the Metric filter page, set the metric filter so it only shows results greater than 0.
Your report is now complete. See the screenshot below for an example of how it might look.
71 comments
Francois Spinnael
Stephen Gallagher
Any idea how we could count tickets ID with "2 times assigned to" as "1" ?
0
Stephen Gallagher
Francois Spinnael not yet :(
I'm wondering could someone on the Zendesk team give us a steer?
Taylor Bowser @... Chandra Robrock Dane
0
Dane
I'm currently testing it. I'll provide an update as soon as I have the result.
0
Dane
Instead of using Update ID, please try to use Update Ticket ID on the formula. This way, it will only return the result for the ticket and not the events on the ticket.
0
Stephen Gallagher
Excellent, Dane - thank you!
It's worth noting (for anyone with the same issue) that this worked (for me) only after I used D_COUNT. The steps at the top of the article refer to COUNT.
0
Francois Spinnael
Dane & Stephen Gallagher
Thanks guys! it works
0
NIkita Kadri
Hi Team
When we use the T1 to T2 assignment time metric on our report it returns the values as per the ticket Closed date, and not for when the tickets were reassigned.
For example: Ticket xyz was reassigned from Tier 1 to Tier 2 on April 10th and then closed on April 12. If I extract a report for Ticket reassignments for April 10th, this ticket doesn't show up instead shows up for the April 12th timeline report when it was closed.
Is there a way to have the tickets show up as per the reassigned date?
0
Dane
What I'm thinking is it's possible you are using the attribute Tickets Solved - Date as part of your query. This will extract data depending on the date specified when it's set to Solved. The best option is to use Tickets Update - Date attribute instead.
0
Tony Jansson
Hi,
I am trying to create a report that counts tickets created in the original group A, before the ticket is updated in any other group.
Using the standard "Created" for groups, seems to track the last group when the ticket is updated.
0
Gab Guinto
If tickets are automatically assigned to a particular group at the same event of ticket creation, then you should be able to see the initial group assignment if you slice the Tickets created metric by the default attribute Update ticket group. Is this what you are looking to report on? That should show you how many tickets were assigned to the groups at the time they were submitted.
0
Gab Guinto
If you have a metric that counts updates involving group_id, then you can slice the data by Update ticket group. This should show you the destination group name (the group the ticket was assigned to after the update). But, if you also need to see the previous value, then you can slice your report by the Changes - Previous Value and - New value (if your report counts the updates where Changes - Field name is group_id. Is this what you have came up with? To display the group names, you can build a separate calculated attribute or renamed sets to display the group name instead of the id in your table.
0