API call to get all tasks (with task details) for a particular project


#1

The following API call tells me all the tasks for a given project:
https://app.asana.com/api/1.0/projects/<project id>/tasks
but the details on the tasks is very sparse. It only includes the task name and task id.

I am looking for a way to pull all tasks for a project and in the least, get the task name and the due date. Is this possible in one API call?


#2

Check the opt_fields


#3

Thanks for the hint!

This ended up being my solution.
https://app.asana.com/api/1.0/projects/<project_id>/tasks?opt_fields='name,due_on,completed,memberships.section.name'

Posting it here in case someone else has the same question in the future.