chrisumphlett/zdeskR

include arguments start_time and end_time in the get_all_ticket_metrics()-function

Opened this issue · 2 comments

It worked, thank you so much!! I will close this issue soon but while I have your attention, I was wondering if it would be possible to also include arguments start_time and end_time in the get_all_ticket_metrics()-function. That would be of great help to me.

Originally posted by @nschaefer1211 in #1 (comment)

I would like to do that. It has not been possible with Zendesk. Zendesk's APIs use various and inconsistent incremental methods. At least according to our understanding, when we first created the package we could not use an end date with tickets (only a start date) and had to get the entire list of users in one full stop. Both of those have been improved (but use different methods -- I wish users would allow a date instead of a page).

My guess is that ticket metrics will have it at some point. I look at their docs periodically. Today, looks like it still just pulls everything that isn't archived:
image

My organization hasn't used this data. I do periodically manually pull the entire thing down, and then add new tickets to a database table so we have it.

If you have a greater need for it, open a ticket with them! Maybe you can get information on when it will be added, or get them to put it on their roadmap.

This is still not possible. There is an incremental export for "ticket metric events", from which one could calculate ticket metrics.

https://developer.zendesk.com/api-reference/ticketing/ticket-management/incremental_exports/#incremental-ticket-metric-event-export