Tasks

Get tasks from a section

Changed on

<b>Required scope: </b><code>tasks:read</code>

Board view only: Returns the compact section records for all tasks within the given section.

get/sections/{section_gid}/tasks

Request

  • Base URL: https://app.asana.com/api/1.0
  • URL: https://app.asana.com/api/1.0/sections/{section_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

opt_fieldsstring[]

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 section'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_mismatch to the property items/ of the query request parameter opt_fields

    • info

      added the enum value custom_type.asana_created_type_identifier to the property items/ of the query request parameter opt_fields

    • info

      added the enum value memberships.project.resource_subtype to the property items/ of the query request parameter opt_fields

    • info

      added the enum value projects.resource_subtype to the property items/ of the query request parameter opt_fields