Skip to main content

Asana

Create, update and find tasks, comment on them, and list or create projects in Asana.

Slugasana
Base URLhttps://app.asana.com/api/1.0
Auth optionsSign in with Asana, Personal access token
Test connectionGET /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​

  1. In Blokkio, go to Apps and open Asana.
  2. Click Connect on the option you want. For a token, paste it into Personal access token (or click Use secret) and click Create.
  3. 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 use YYYY-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).

ActionKeyWhat it doesInputs (required)
List workspaceslist_workspaces—
List projectslist_projectsWorkspace ID, Archived
Create projectcreate_projectWorkspace ID, Team ID, Name, Description, Due date
List taskslist_tasksTasks in a project.Project ID, Incomplete or completed since
Search taskssearch_tasksFull-text task search in a workspace (Asana paid plans only).Workspace ID, Text, In projects (IDs), Assignee IDs, Completed, How many
Get taskget_taskTask ID
Create taskcreate_taskName, Description, Description (HTML), Assignee, Due date, Start date, Project IDs, Workspace ID, Parent task ID
Update taskupdate_taskOnly the fields you fill change.Task ID, Name, Description, Description (HTML), Assignee, Due date, Start date, Completed
Add commentadd_commentTask ID, Comment
List commentslist_commentsComments 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 }}).

TriggerKeyWhat starts a runInputs (required)Output
New tasknew_taskNew incomplete tasks in a project. Asana lists tasks oldest first, so each check reads up to 1,000 open tasks.Project IDgid, name, notes, assignee, due_on, permalink_url, created_at

Troubleshooting​

MessageWhat to do
HTTP 402 … Search is only available to premium usersUse List tasks instead of Search tasks.
HTTP 400 … workspace: Missing inputGive Project IDs or a Workspace ID when creating a task.
HTTP 403 … forbidden_scopesBlokkio's Asana OAuth app doesn't allow a scope Blokkio asks for. Use a personal access token and tell Blokkio support.