Integrations / Asana
Asana
Work management: projects and tasks.
5 actions
OAuth 2
2 read3 write
Calls app.asana.com
Connect
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "asana" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();Permissions requested
| Scope | Why it is requested |
|---|---|
default | Read and write your Asana tasks and projects |
Actions
Add commentwriteasana.add_commentAdd a comment to a task.
Needs scope: default
| Input | Type | Description | |
|---|---|---|---|
task_gid | string | Required | |
text | string | Required |
await setu.execute({
userId: "user_1",
action: "asana.add_comment",
input: {
"task_gid": "<task_gid>",
"text": "<text>"
},
});Create taskwriteasana.create_taskCreate a task, optionally in a project and assigned to someone.
Needs scope: default
| Input | Type | Description | |
|---|---|---|---|
name | string | Required | |
notes | string | Optional | |
projects | array of string | Optional | |
assignee | string | Optional | User GID or 'me' |
due_on | string | Optional | YYYY-MM-DD |
await setu.execute({
userId: "user_1",
action: "asana.create_task",
input: {
"name": "<name>"
},
});List projectsreadasana.list_projectsList projects in a workspace.
Needs scope: default
| Input | Type | Description | |
|---|---|---|---|
workspace | string | Required | Workspace GID |
limit | integer | Optional |
await setu.execute({
userId: "user_1",
action: "asana.list_projects",
input: {
"workspace": "<workspace>"
},
});List tasksreadasana.list_tasksList tasks in a project.
Needs scope: default
| Input | Type | Description | |
|---|---|---|---|
project | string | Required | Project GID |
limit | integer | Optional |
await setu.execute({
userId: "user_1",
action: "asana.list_tasks",
input: {
"project": "<project>"
},
});Update taskwriteasana.update_taskUpdate a task's name, notes, due date or completion.
Needs scope: default
| Input | Type | Description | |
|---|---|---|---|
task_gid | string | Required | |
name | string | Optional | |
notes | string | Optional | |
completed | boolean | Optional | |
due_on | string | Optional |
await setu.execute({
userId: "user_1",
action: "asana.update_task",
input: {
"task_gid": "<task_gid>"
},
});