How to import Zendesk tickets for SLA reporting
Zendesk exports tickets to CSV, and Metproof reads that file. A view export has no first response. An Explore report has one, or you can use the live feed: Zendesk can send each ticket as it changes, with a short template you paste in once.
Export from Zendesk
Zendesk exports the columns of a view, and the built-in views leave out the solved date and the assignee. Create a view for the export once:
- In Views, add a view for the tickets you want. A condition such as Status is less than Closed works. Under Table columns add Requested, Priority, Assignee and Solved, besides ID and Status.
- Open the view, choose its options menu and Export as CSV. Zendesk emails a download link to the administrator who asked for it. A view exports up to 1,000 tickets, so split a large history by date.
Export from Explore, with the first reply and the waiting time
If your plan includes Zendesk Explore, a report can export what the views leave out. Build it once:
- In Explore open Reports, choose New report and the Support - Tickets dataset.
- Put these attributes in Rows: Ticket ID, Ticket created - Timestamp, Ticket solved - Timestamp, Ticket status, Ticket priority and Assignee name. Leave the subject out.
- Add these as Metrics, with SUM: First reply time (min) from the calendar hours group, and Agent wait time - Business hours (min), the time the ticket spent in Pending. Zendesk needs a business hours schedule for the second one, and it should match the client’s hours in Metproof.
- Open the arrow next to Save, choose Export and CSV. The export ignores the report’s filters.
Import into Metproof
- Pick the client, choose Zendesk as the source and upload the file.
- The columns (
ID,Requested,Priority,Status,AssigneeandSolved), the date format, the priorities and the statuses are filled in for you. Check them and fix anything marked as not matched. A file from a built-in view hasTicket statusinstead ofStatusand noSolvedcolumn: solved tickets then fail with no resolution date, so use the view above. - Run the import. Re-importing later updates the tickets by their ID, so there are no duplicates.
How Zendesk’s values are read
- Priority:
Urgentis Critical,Highis High,Normalis Normal andLowis Low. A ticket with no priority is reported as not matched, so give those a priority in Zendesk or fix them in the file. - Status:
NewandOpenare open.PendingandOn-holdare waiting on the client.SolvedandClosedare resolved.Deletedis set to Do not import. - Dates: Zendesk writes them like
2026-10-02 22:56, or2026-10-02T22:56:27in an Explore export, in the timezone of the account, with no offset. They are read in the client’s timezone, so set the same one on the client. - First response: the view export has no column for it, so the CSV import leaves it empty. An Explore export has
First reply time (min), which is added to the created time, and a ticket nobody has answered has none. Or use the webhook below to record it. - Waiting time: the Explore column
Agent wait time - Business hours (min)is read as the time the clock was stopped. The plainAgent wait time (min)counts nights and weekends too, so it is not filled in for you. A ticket that is Pending right now has no finished wait yet, and counts from the moment you import it.
Keep it up to date with a webhook
On the Team plan, Zendesk can send each ticket to Metproof as it changes. Zendesk has no default body, so you paste the one below into two triggers. The webhook replaces the export and import above for keeping the data current. Tickets that already exist are not sent, so import a CSV once if you want the history.
- In Metproof, open Clients, create the client’s webhook and copy the address. It is shown only once.
- In Zendesk Admin Center open Apps and integrations › Webhooks and create a webhook connected to Zendesk events or Trigger or automation. Use the POST method, the JSON request format, No authentication and the webhook address, copied from the client’s page in Metproof, as the endpoint. The token in that address identifies the client, so create one webhook per client.
- Open Objects and rules › Business rules › Triggers and create the first trigger, Ticket created or changed. Under Meet ALL put Ticket › Status › Is not › Closed. Under Meet ANY put Ticket › Is › Created, Ticket › Status › Changed, Ticket › Priority › Changed and Ticket › Assignee › Changed. For the action choose Notify by › Active webhook, pick the webhook and paste this as the JSON body:
{"source":"zendesk","external_id":"{{ticket.id}}","priority":"{{ticket.priority}}","status":"{{ticket.status}}","opened_at":"{{ticket.created_at_with_timestamp}}","status_changed_at":"{{ticket.updated_at_with_timestamp}}","agent_name":"{{ticket.assignee.name}}"} - Create the second trigger, First public agent reply, to record the first response. Under Meet ALL put Ticket › Is › Updated, Comment › Is › Public, Current user › Role › Is not › End-user and Ticket › Tags › Contains none of the following › metproof_first_reply. It has two actions: Add tags
metproof_first_reply, and the same webhook with this JSON body:{"source":"zendesk","external_id":"{{ticket.id}}","priority":"{{ticket.priority}}","status":"{{ticket.status}}","opened_at":"{{ticket.created_at_with_timestamp}}","status_changed_at":"{{ticket.updated_at_with_timestamp}}","agent_name":"{{ticket.assignee.name}}","first_response_at":"{{ticket.updated_at_with_timestamp}}"}
The tag stops the second trigger after the first reply, so only the first public reply by an agent counts. An internal note does not, and neither does a reply by the customer or the first comment of a ticket an agent opened for the customer.
- The subject is left out of the body on purpose, so the ticket titles are not stored.
- The solved time is the time of the update that solved the ticket. Tickets are sent only when they are created or when their status, priority or assignee changes, so a later internal note or the automatic closing does not move it.
- Repeated updates for the same ticket are harmless, because tickets are matched by their ID. Deleted tickets are acknowledged and not stored.
- Zendesk only offers On-hold when it is turned on in Objects and rules › Tickets › Statuses. Pending and On-hold both stop the clock.
Optional: accept only signed calls. Zendesk signs every webhook. Copy the webhook’s signing secret from its page in Zendesk. Then open the client’s webhook window in Metproof, paste the same secret under Signature check and save. From then on a call that is not signed with it is refused, and it appears as Bad signature in the window’s recent activity. Leave it empty and calls are accepted as before.
More on the import route
The general method works for any helpdesk: see SLA tracking from your helpdesk’s CSV export.