How to get the assignee of a task?

How can I get the assignee of a task from the API so I can save it as a string?

1 Like

Hi @Adam_Creed and welcome to the forum,

Hard to give a detailed response with the level of info provided, but assuming you have the task’s ID, use this call to retrieve the task’s information:

https://developers.asana.com/docs/#get-a-task

Assuming when you say “save it as a string” you’re referring to the assignee’s name, add the parameter opt_expand=assignee to the request URL; that will return the entire assignee object including the assignee name.

2 Likes