Get tasks from a project
Changed on<b>Required scope: </b><code>tasks:read</code>
Returns the compact task records for all tasks within the given project, ordered by their priority within the project. Tasks can exist in more than one project at a time.
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/projects/{project_gid}/tasks
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token, scopes: tasks:read)
Query parameters
This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the input/output options guide.
Response
Successfully retrieved the requested project's tasks.
Example response
{
"data": [
{
"gid": "12345",
"resource_type": "task",
"name": "Bug Task",
"resource_subtype": "default_task",
"created_by": {
"gid": "1111",
"resource_type": "user"
}
}
],
"next_page": {
"offset": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
"path": "/tasks/12345/attachments?limit=2&offset=eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
"uri": "https://app.asana.com/api/1.0/tasks/12345/attachments?limit=2&offset=eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9"
}
}Changes
- info
added the enum value
has_subtasks_date_mismatchto the propertyitems/of thequeryrequest parameteropt_fields
- info
- info
added the enum value
custom_type.asana_created_type_identifierto the propertyitems/of thequeryrequest parameteropt_fields - info
added the enum value
memberships.project.resource_subtypeto the propertyitems/of thequeryrequest parameteropt_fields - info
added the enum value
projects.resource_subtypeto the propertyitems/of thequeryrequest parameteropt_fields
- info