Accessing Asana Zendesk integration via API
Posted Jul 20, 2022
We've got Zendesk set up for ticketing and within Asana we have the integration set up where you can link a ticket to a specific task. This then populates some ticket details and you can link to the ticket directly as well.
Within Asana you can query the task via an API to get the metadata. The Zendesk ticket is actually an attachment and when I view the details of the ticket I get the following:
{'gid': '1202623230894952', 'name': 'Ticket name within Zendesk', 'resource_type': 'attachment', 'resource_subtype': 'external'}
The gid variable is the object ID within Zendesk. The name is simply the title of the ticket in Zendesk. What I don't see is the Zendesk ticket ID or URL (required to input in the GUI to link the ticket). It's not clear to me how this metadata can reliably link to a ticket in Zendesk since the title of a ticket can easily be duplicated.
When I search the Zendesk API documents for tickets I don't see any ID similar to the gid. Is there a way to query the Zendesk API for the tickets to see how it's making the link to a specific Asana task?
I was looking at the API documentation here on the Zendesk side of things. https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket
I could not find any Zendesk documentation about how the Asana integration works. Here's the pages I could find related to it:
https://asana.com/apps/zendesk
https://www.zendesk.com/marketplace/apps/support/353312/asana/
1
1 comment
Jacob Nimocks
Okay after some more research it appears that the initial return on an attachment in Asana only gives you a few fields. There's another function which gets all the fields:
0
Sign in to leave a comment.