Asana
Asana is a web and mobile application designed to help teams organize, track, and manage their work tasks and projects efficiently.
Categories: Project Management
Type: asana/v1
Connections
Version: 1
OAuth2 Authorization Code
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| clientId | Client Id | STRING | true | |
| clientSecret | Client Secret | STRING | true |
Connection Setup
Create Asana App
- Navigate to Asana Developer dashboard.
- Click on Create new app.
- Enter app name.
- Check everything.
- Agree to the Terms.
- Click on Create app.
- Here you can see your Client ID and Client secret.
- Click on OAuth.
- Click on Add redirect URL.
- Add redirect URL depending on your instance:
https://app.bytechef.io/callback(Cloud)http://localhost:5173/callback(Local dev)
- Click on Add.
- Add following scopes:
- custom_fields:write
- projects:read
- projects:write
- tags:read
- tasks:read
- tasks:write
- teams:read
- users:read
- webhooks:read
- webhooks:write
- webhooks:delete
- workspaces:read
- Done 🚀.
Actions
Create Custom Field
Name: createCustomField
Creates a custom field for a task.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| data | Data | OBJECT Properties{STRING(workspace), STRING(name), STRING(description), STRING(resource_subtype), STRING(text_value), [{STRING(name), BOOLEAN(enabled), STRING(color)}](enum_options), NUMBER(number_value), INTEGER(precision), {DATE(date), DATE_TIME(date_time)}(date_value), [STRING](people_value), [STRING](reference_value), STRING(format), STRING(currency_code)} | false |
Example JSON Structure
{
"label" : "Create Custom Field",
"name" : "createCustomField",
"parameters" : {
"data" : {
"workspace" : "",
"name" : "",
"description" : "",
"resource_subtype" : "",
"text_value" : "",
"enum_options" : [ {
"name" : "",
"enabled" : false,
"color" : ""
} ],
"number_value" : 0.0,
"precision" : 1,
"date_value" : {
"date" : "2021-01-01",
"date_time" : "2021-01-01T00:00:00"
},
"people_value" : [ "" ],
"reference_value" : [ "" ],
"format" : "",
"currency_code" : ""
}
},
"type" : "asana/v1/createCustomField"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| data | OBJECT Properties{STRING(gid), STRING(resource_type), STRING(name), STRING(type), [{STRING(gid), STRING(resource_type), STRING(name), BOOLEAN(enabled), STRING(color)}](enum_options), STRING(input_restrictions), {DATE(date), DATE_TIME(date_time)}(date_value), {STRING(gid), STRING(resource_type), STRING(name), BOOLEAN(enabled), STRING(color)}(enum_value), [{STRING(gid), STRING(resource_type), STRING(name), BOOLEAN(enabled), STRING(color)}](multi_enum_values), NUMBER(number_value), STRING(text_value), INTEGER(precision), STRING(format), STRING(currency_code), [{STRING(gid), STRING(resource_type), STRING(name)}](people_value), [{STRING(gid), STRING(resource_type), STRING(name)}](reference_value), STRING(resource_subtype)} |
Output Example
{
"data" : {
"gid" : "",
"resource_type" : "",
"name" : "",
"type" : "",
"enum_options" : [ {
"gid" : "",
"resource_type" : "",
"name" : "",
"enabled" : false,
"color" : ""
} ],
"input_restrictions" : "",
"date_value" : {
"date" : "2021-01-01",
"date_time" : "2021-01-01T00:00:00"
},
"enum_value" : {
"gid" : "",
"resource_type" : "",
"name" : "",
"enabled" : false,
"color" : ""
},
"multi_enum_values" : [ {
"gid" : "",
"resource_type" : "",
"name" : "",
"enabled" : false,
"color" : ""
} ],
"number_value" : 0.0,
"text_value" : "",
"precision" : 1,
"format" : "",
"currency_code" : "",
"people_value" : [ {
"gid" : "",
"resource_type" : "",
"name" : ""
} ],
"reference_value" : [ {
"gid" : "",
"resource_type" : "",
"name" : ""
} ],
"resource_subtype" : ""
}
}Find Workspace GID
To find workspace GID, click here.
Create Project
Name: createProject
Creates a new project in a workspace or team.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| data | Data | OBJECT Properties{STRING(workspace), STRING(name), STRING(notes), STRING(team)} | false |
Example JSON Structure
{
"label" : "Create Project",
"name" : "createProject",
"parameters" : {
"data" : {
"workspace" : "",
"name" : "",
"notes" : "",
"team" : ""
}
},
"type" : "asana/v1/createProject"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| data | OBJECT Properties{STRING(gid), STRING(resource_type), BOOLEAN(archived), STRING(color), STRING(icon), DATE_TIME(created_at), {STRING(gid), STRING(resource_type), STRING(title), STRING(resource_subtype)}(current_status_update), STRING(default_view), STRING(due_on), STRING(html_notes), STRING(name), STRING(notes), {STRING(gid), STRING(name)}(team), {STRING(gid), STRING(name)}(workspace)} |
Output Example
{
"data" : {
"gid" : "",
"resource_type" : "",
"archived" : false,
"color" : "",
"icon" : "",
"created_at" : "2021-01-01T00:00:00",
"current_status_update" : {
"gid" : "",
"resource_type" : "",
"title" : "",
"resource_subtype" : ""
},
"default_view" : "",
"due_on" : "",
"html_notes" : "",
"name" : "",
"notes" : "",
"team" : {
"gid" : "",
"name" : ""
},
"workspace" : {
"gid" : "",
"name" : ""
}
}
}Find Workspace GID
To find workspace GID, click here.
Find Team ID
To find team GID, click here.
Create Subtask
Name: createSubtask
Creates a new subtask and adds it to the parent task.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| taskGid | Parent Task GID | STRING Depends Ondata.workspace | The task GID of the task that will be the parent of the subtask. | true |
| data | Data | OBJECT Properties{STRING(workspace), [STRING](projects), STRING(name), STRING(notes), DATE(due_on), STRING(assignee)} | false |
Example JSON Structure
{
"label" : "Create Subtask",
"name" : "createSubtask",
"parameters" : {
"taskGid" : "",
"data" : {
"workspace" : "",
"projects" : [ "" ],
"name" : "",
"notes" : "",
"due_on" : "2021-01-01",
"assignee" : ""
}
},
"type" : "asana/v1/createSubtask"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| data | OBJECT Properties{STRING(gid), DATE(due_on), STRING(notes), STRING(name), {STRING(gid), STRING(name)}(workspace), {STRING(gid), STRING(name)}(project), {STRING(gid), STRING(name)}(parent), {STRING(gid), STRING(name)}(assignee)} |
Output Example
{
"data" : {
"gid" : "",
"due_on" : "2021-01-01",
"notes" : "",
"name" : "",
"workspace" : {
"gid" : "",
"name" : ""
},
"project" : {
"gid" : "",
"name" : ""
},
"parent" : {
"gid" : "",
"name" : ""
},
"assignee" : {
"gid" : "",
"name" : ""
}
}
}Find Parent Task GID
To find parent task GID, click here.
Find Workspace GID
To find workspace GID, click here.
Find Project GID
To find project GID, click here.
Find Assignee User GID
To find the user ID of the assignee, click here.
Create Task
Name: createTask
Creates a new task in a workspace.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| data | Data | OBJECT Properties{STRING(workspace), [STRING](projects), STRING(name), STRING(notes), DATE(due_on), [STRING](tags), STRING(assignee)} | false |
Example JSON Structure
{
"label" : "Create Task",
"name" : "createTask",
"parameters" : {
"data" : {
"workspace" : "",
"projects" : [ "" ],
"name" : "",
"notes" : "",
"due_on" : "2021-01-01",
"tags" : [ "" ],
"assignee" : ""
}
},
"type" : "asana/v1/createTask"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| data | OBJECT Properties{STRING(gid), DATE(due_on), STRING(notes), STRING(name), {STRING(gid), STRING(name)}(workspace), [{STRING(gid), STRING(name)}](tags), {STRING(gid), STRING(name)}(assignee)} |
Output Example
{
"data" : {
"gid" : "",
"due_on" : "2021-01-01",
"notes" : "",
"name" : "",
"workspace" : {
"gid" : "",
"name" : ""
},
"tags" : [ {
"gid" : "",
"name" : ""
} ],
"assignee" : {
"gid" : "",
"name" : ""
}
}
}Find Workspace GID
To find workspace GID, click here.
Find Project ID
To find project ID, click here.
Find Assignee User ID
To find the user ID of the assignee, click here.
Find Tag ID
To find tag ID, click here.
Triggers
New Task
Name: newTask
Triggers when new task is created.
Type: DYNAMIC_WEBHOOK
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| workspace | Workspace | STRING | The workspace where the project is located. | true |
| resource | Project | STRING Depends Onworkspace | The project to monitor for newly created tasks. | true |
Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| gid | STRING | Globally unique identifier of the task. |
| name | STRING | Name of the task. |
| resource_type | STRING | Type of the resource (task). |
| created_at | STRING | Timestamp when the task was created. |
| modified_at | STRING | Timestamp when the task was last modified. |
| completed | STRING | Indicates whether the task is completed. |
| notes | STRING | Description or notes of the task. |
| assignee | OBJECT Properties{STRING(gid), STRING(name)} | User assigned to the task. |
| project | OBJECT Properties{STRING(gid), STRING(name)} | Project the task belongs to. |
JSON Example
{
"label" : "New Task",
"name" : "newTask",
"parameters" : {
"workspace" : "",
"resource" : ""
},
"type" : "asana/v1/newTask"
}What to do if your action is not listed here?
If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.
To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.
Additional Instructions
How to find Workspace GID
You have several methods to find your Asana workspace ID:
- Method 1: Through the Asana URL
- Log in to Asana.
- Open the workspace you want to use.
- Look at the URL in your browser. It will look similar to:
https://app.asana.com/0/123456789012345/home - The number after
/0/(123456789012345in this example) is your workspace ID.
- Method 2: Through the Asana API
- Open your browser or API client.
- Enter the following request:
https://app.asana.com/api/1.0/workspaces - Look for the workspace you want in the JSON response.
- The value under
gidis your workspace ID.
How to find Team GID
You have several methods to find your Asana team ID:
- Method 1: Through the Asana URL
-
Open Asana.
-
Navigate to the team you want to use.
-
Look at the URL in your browser. It will look similar to:
https://app.asana.com/0/team/987654321098765/overview -
The number in the URL (
987654321098765in this example) is your team ID.
- Method 2: Through the Asana API
- Open your browser or API client.
- Run the following request (replace
WORKSPACE_GIDwith your workspace ID):https://app.asana.com/api/1.0/workspaces/WORKSPACE_GID/teams - Find the team you want in the JSON response.
- The value under
gidis the team ID.
How to find Project GID
You have several methods to find your Asana project ID:
- Method 1: Through the Project URL
- Open the project in Asana.
- Look at the URL in your browser. It will look similar to:
https://app.asana.com/0/123456789012345/678901234567890 - The second number (
678901234567890in this example) is the project ID.
- Method 2: Through the Asana API
- Open your browser or API client.
- Run the following request (replace
WORKSPACE_GIDwith your workspace ID):https://app.asana.com/api/1.0/workspaces/WORKSPACE_GID/projects - Find the project in the JSON response.
- The value under
gidis the project ID.
How to find Task GID
You have several methods to find your Asana task ID:
- Method 1: Through the Task URL
- Open the task in Asana.
- Look at the URL in your browser. It will look similar to:
https://app.asana.com/0/123456789012345/987654321012345 - The second number (
987654321012345in this example) is the task ID.
- Method 2: Through the Asana API
- Open your browser or API client.
- Run the following request (replace
PROJECT_GIDwith your project ID):https://app.asana.com/api/1.0/projects/PROJECT_GID/tasks - Find the task in the JSON response.
- The value under
gidis the task ID.
How to find User GID
- Open your browser or API client.
- Run the following request (replace
WORKSPACE_GIDwith your workspace ID):https://app.asana.com/api/1.0/workspaces/WORKSPACE_GID/users - Find the user in the JSON response.
- The value under
gidis the user ID.
How to find Tags GID
- Open your browser or API client.
- Run the following request (replace
WORKSPACE_GIDwith your workspace ID):https://app.asana.com/api/1.0/workspaces/WORKSPACE_GID/tags - Find the tag you want in the JSON response.
- The value under
gidis the tag ID.
How is this guide?
Last updated on