How to fetch all tasks for tickets

Is there an api which we can use for the same?

Hi @Dev_evergen,

When looking to get all the tasks that are associated with the ticket object we can use this endpoint - Get all engagements; the return results will show:

  • The ticketId (if the array is null it means that the task isn’t associated with that particular object) under the associations property.
  • The engagementType (under the scheduledTasks property) and in this case you’re looking for “TASK”.

Additionally, if you’re looking to get engagements of a specific ticket you can use this endpoint here: Get associations for CRM object and the hubspot definition ID is explained here: Association definitions. (For ticket to engagement the definition ID is 17.)

Hope this helps to clarify!