> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Asana project tasks

> Observe open and completed tasks in one Asana project.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md) with
`restEndpoint("https://app.asana.com", "/api/1.0/tasks", auth, data)`.
Seal a bearer token with read access to the project. Pass the same label to the receiver binder and as the app's `data`.

Initialize with
`{ profile: { mode: "provider", provider: "asana.tasks.observations", selection: "123456789", limit: 10 } }`.
Set `selection` to the project's numeric GID as text. Records are keyed
by task GID and include the name, completion, due date, assignee GID, and
created and modified times where Asana supplies them. The page bound is
1–100 tasks and 36 KiB. Only the `next_page.offset` token is passed to
the original route. A null `next_page` ends the sweep, and a later poll
starts at the beginning. Absent or deleted tasks remain published.
The feed requires the bundled parser artifact.

[Asana tasks API](https://developers.asana.com/reference/gettasks)

## Write tasks

Follow the [native write app guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Bind `providerWriter("asana.tasks.create-update-delete", { endpoint: "https://app.asana.com", auth }, data)` and pass it as `receivers.writers["asana.tasks.create-update-delete"]`. Use an Asana token permitted to create, update and trash tasks. Send `{ data: { … } }` and include the intended project when creating a task. The credential controls task access. Create and update require HTTP 201 and 200 respectively with `data.gid`. Delete accepts HTTP 200 for the requested task and sends it to Asana Trash.

The writer records its evidence under the app's `data` label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://developers.asana.com/reference/createtask)

## Projects, sections, subtasks, stories and users

Bind a separate `providerEndpoint` at `https://app.asana.com` for each
resource. Use sealed bearer or OAuth2 authorization and pass the same protected label to the receiver binder and as the app's `data`.

| Mode | Installed path | Terms |
| - | - | - |
| `asana.projects.observations` | `/api/1.0/projects` | Set `selection` to the workspace GID. |
| `asana.project.sections.observations` | `/api/1.0/projects/PROJECT_GID/sections` | The installed path selects the project. |
| `asana.task.subtasks.observations` | `/api/1.0/tasks/TASK_GID/subtasks` | The installed path selects the parent task. |
| `asana.task.stories.observations` | `/api/1.0/tasks/TASK_GID/stories` | The installed path selects the task. Stories include visible comments and activity. |
| `asana.workspace.users.observations` | `/api/1.0/users` | Set `selection` to the workspace GID. |

Use a `limit` of 1–100. Each response can carry up to 36 KiB.
Records take their exact GID as the key. The app submits only the
opaque `next_page.offset` to the installed route. Sweeps restart at the
end and keep absent records published.

[Projects](https://developers.asana.com/reference/getprojects) ·
[Sections](https://developers.asana.com/reference/getsectionsforproject) ·
[Subtasks](https://developers.asana.com/reference/getsubtasksfortask) ·
[Stories](https://developers.asana.com/reference/getstoriesfortask) ·
[Users](https://developers.asana.com/reference/getusers)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.