In the returned object I’m able to access different custom fields that we have created. I’m also able to change the values of these custom fields through the API. No errors are appearing from any of my calls currently.
However, we have the Zendesk integration which allows you to link a ticket via the GUI. You paste the specific ticket link and then a small widget populates with some of the ticket data.
This Zendesk ticket information is nowhere in the returned task through the API. How do I look up the ticket link or manually assign it when that field does not appear in what’s returned through the function?
If the Zendesk integration is using the latest AppComponent feature (currently in Beta) then information is attached to the task through an attachment. If you query attachment on a task, you’ll probably see something related to ZenDesk. It does not give you access to data about the ticket though, as this data is coming from Asana calling their specific widget endpoint…
My guess: you can’t get that data unless reading the Zendesk API.
Thanks for the feedback @Bastien_Siebman. I guess I’m not clear on how the attachments work with the task. When I look at the task JSON there is no reference to attachments even though I can see it in the GUI as a comment.
There’s also no reference to attachments (except for search filters) in the documentation related to the task. How am I supposed to get an attachment for the task if there’s no visibility in the metadata that there even is an attachment?
Looks like the gid is the Asana internal ID. Then name is the ticket name from Zendesk. However I don’t see the URL or Zendesk ticket number. I guess I need to start searching on the Zendesk API side to understand how they are connecting this now.
That looks to have done the trick! When you query the task for attachments you iterate through the results to get the specific attachment GID. Then when you query that specific GID you get all the fields.