Getting ALL comments for ALL tickets | Community
Skip to main content

Getting ALL comments for ALL tickets

  • February 11, 2021
  • 3 replies
  • 0 views

Hey everyone, 

 

I was looking at the API docs and saw that there is an endpoint where one API call gives you 1000 tickets so that you can more easily export ALL the tickets in your system. 

Now I not only need all the tickets but also ALL the comments for each ticket. Is there an endpoint to make a bulk request for those too? I was only able to find the endpoint where you have to make ONE call PER ticket which seems really inefficient considering the number of tickets we are working with. 

Hope someone can help with this. 

 

Thanks

Henny

3 replies

Greg29
  • February 12, 2021

Hi Henrieke! If you're looking to pull all tickets and all comments for those tickets, you will want to use the Incremental Ticket Event Export API. You will need to use the comment_events sideload as well to accomplish this.


  • March 10, 2022

A question on this topic, for @greg29 or others.

Is the format of the curl command 

.../api/v2/incremental/tickets/cursor.json?start_time=1636997653&include=comment_events

The comments are not exported but the parent ticket data is.

Thanks


Eric27
  • March 14, 2022
Hey Ruben,

You'll need to hit the ticket_events endpoint.

.../api/v2/incremental/ticket_events.json?start_time=1636997653&include=comment_events

Let us know if you have any issues!