Asana
Create, update and find tasks, comment on them, and list or create projects in Asana.
| Slug | asana |
| Base URL | https://app.asana.com/api/1.0 |
| Auth options | Sign in with Asana, Personal access token |
| Test connection | GET /users/me |
1. Choose how to connect
- Sign in with Asana is one click: you approve on Asana's consent page and you're done. It's only shown when Blokkio offers one-click sign-in for this app; otherwise use the token option below.
- Personal access token: in Asana open Settings → Apps → Developer apps (app.asana.com/0/my-apps) → Create new token, name it and copy it. It acts as you, with your access.
2. Create the connection
- In Blokkio, go to Apps and open Asana.
- Click Connect on the option you want. For a token, paste it into Personal access token (or click Use secret) and click Create.
- Click Test connection. It calls
GET /users/me.
Finding ids (gids)
Asana ids are numbers called gids. List workspaces gives the workspace gid, List projects the project gids.
In the browser, a project URL looks like app.asana.com/0/1209876543210/list: the number is the project gid; a
task opened from it adds the task gid.
Tasks
- Create task needs a Name and either Project IDs or a Workspace ID.
- Assignee takes
me, an email address or a user gid. Dates useYYYY-MM-DD. - Search tasks only works on paid Asana plans (free plans answer
402 Payment Required). On free plans, use List tasks for a project.
Actions
Use them with the App Action node. Lists return { items, count }; actions that read
every page return { items, pages } (turn off Fetch all pages or lower Max pages in the node to read less).
| Action | Key | What it does | Inputs (required) |
|---|---|---|---|
| List workspaces | list_workspaces | — | |
| List projects | list_projects | Workspace ID, Archived | |
| Create project | create_project | Workspace ID, Team ID, Name, Description, Due date | |
| List tasks | list_tasks | Tasks in a project. | Project ID, Incomplete or completed since |
| Search tasks | search_tasks | Full-text task search in a workspace (Asana paid plans only). | Workspace ID, Text, In projects (IDs), Assignee IDs, Completed, How many |
| Get task | get_task | Task ID | |
| Create task | create_task | Name, Description, Description (HTML), Assignee, Due date, Start date, Project IDs, Workspace ID, Parent task ID | |
| Update task | update_task | Only the fields you fill change. | Task ID, Name, Description, Description (HTML), Assignee, Due date, Start date, Completed |
| Add comment | add_comment | Task ID, Comment | |
| List comments | list_comments | Comments and activity on a task. | Task ID |
Triggers
Use them with the App Trigger node. A trigger checks the app at its polling interval (the shortest allowed depends on your plan, see Plans and limits) and starts one run per new item, oldest first. The first check after you publish only records what already exists, so only items created after that start runs. Each run gets the item as $trigger (for example {{ $trigger.id }}).
| Trigger | Key | What starts a run | Inputs (required) | Output |
|---|---|---|---|---|
| New task | new_task | New incomplete tasks in a project. Asana lists tasks oldest first, so each check reads up to 1,000 open tasks. | Project ID | gid, name, notes, assignee, due_on, permalink_url, created_at |
Troubleshooting
| Message | What to do |
|---|---|
HTTP 402 … Search is only available to premium users | Use List tasks instead of Search tasks. |
HTTP 400 … workspace: Missing input | Give Project IDs or a Workspace ID when creating a task. |
HTTP 403 … forbidden_scopes | Blokkio's Asana OAuth app doesn't allow a scope Blokkio asks for. Use a personal access token and tell Blokkio support. |