English
Asana
Creates an Asana task from an email, attaches its files, comments, completes it, and reads a project’s tasks.
The Asana node turns an email into a tracked task: it creates the task in the right project (and section), attaches the email’s files, then moves it forward — comment, due date, completion.
It works with an Asana connection (a personal access token). See Asana.
At a glance
- Type:
asana.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: Writes outside (
external_write) — writes outside Loop & Roll; described instead of performed during a test run - Needs a carrier email: No
- Connection: Asana
- Inputs:
main - Outputs:
main
Connection
This node needs a Asana connection.
Parameters
connection
Asana connection — The Asana connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
createTask - Options:
createTask— Create a taskupdateTask— Update a taskcomment— Comment on a taskattach— Attach files to a task: The email’s attachments, or those added by an earlier step.getTask— Get a tasklistTasks— List a project’s tasks
workspace
Workspace
- Type: Remote resource (
resourceLocator) - Required: Yes
- Ways to choose: pick from a list, type an ID (
asana.workspace) - Listed with the connection in:
connection - Shown when:
actionis one ofcreateTask,listTasks
project
Project
- Type: Remote resource (
resourceLocator) - Required: Yes
- Ways to choose: pick from a list, type an ID (
asana.project) - Listed inside:
workspace - Listed with the connection in:
connection - Shown when:
actionis one ofcreateTask,listTasks
section
Section — Optional: the column to put the task in.
- Type: Remote resource (
resourceLocator) - Required: No
- Ways to choose: pick from a list, type an ID (
asana.section) - Listed inside:
project - Listed with the connection in:
connection - Shown when:
actioniscreateTask
taskId
Task — The Asana id (gid) of the task, as an earlier step or the trigger returns it.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 100 characters at most
- Example:
{{ data.asana.taskId }} - Shown when:
actionis one ofupdateTask,comment,attach,getTask - Expressions:
{{ }}accepted
name
Title
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 1000 characters at most
- Example:
{{ email.subject }} - Shown when:
actionis one ofcreateTask,updateTask - Expressions:
{{ }}accepted
notes
Description
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 50000 characters at most
- Example:
{{ email.bodyText }} - Shown when:
actioniscreateTask - Expressions:
{{ }}accepted
assignee
Assign to — An email address of a workspace member, me, or empty.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Shown when:
actioniscreateTask - Expressions:
{{ }}accepted
dueOn
Due date — A YYYY-MM-DD date. Empty: none.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 10 characters at most
- Shown when:
actionis one ofcreateTask,updateTask - Expressions:
{{ }}accepted
completed
Status
- Type: One choice (
options) - Required: No
- Default:
unchanged - Options:
unchanged— Unchangedtrue— Completedfalse— Not completed
- Shown when:
actionisupdateTask
text
Comment
- Type: Long text (
text) - Required: Yes
- Default:
""(empty) - 50000 characters at most
- Shown when:
actioniscomment - Expressions:
{{ }}accepted
selection
Attachments to use
- Type: One choice (
options) - Required: Yes
- Default:
all - Options:
all— All attachments: Those of the triggering email, then the files added by earlier steps (a fetched deed, a signed PDF), in that order.first— The first one only: The first attachment, when only one matters.byMime— By file type: By MIME type:application/pdf, or a whole family withimage/*.byName— By file name: By name pattern:*.pdf,invoice-*.
- Shown when:
actionisattach
mime
File type — Exact MIME type (application/pdf) or a whole family (image/*). Left empty, no attachment is kept.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
application/pdf - Shown when:
actionisattachandselectionisbyMime - Expressions:
{{ }}accepted
namePattern
File name — Simple pattern: * matches anything, ? one character (*.pdf, invoice-*). Case is ignored.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
*.pdf - Shown when:
actionisattachandselectionisbyName - Expressions:
{{ }}accepted
includeCompleted
Include completed tasks
- Type: Yes / no (
boolean) - Required: No
- Default:
false - Shown when:
actionislistTasks
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
20 - Whole number, from 1 to 100
- Shown when:
actionislistTasks
Outputs
main— Taken once the call to Asana succeeds. An error answer from Asana fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.taskId }}—string. Create, update, comment, attach, get: the task id (gid).{{ data.<step>.url }}—string. Create a task only: the task’s link in Asana.{{ data.<step>.task }}—{ id, name, notes, completed, dueOn, url, assigneeName, createdAt, modifiedAt }. Create, update, get: the task as Asana returns it.{{ data.<step>.tasks }}—array of { id, name, notes, completed, dueOn, url, assigneeName, createdAt, modifiedAt }. List only: the project’s tasks.{{ data.<step>.uploaded }}—array of { filename, attachmentId }. Attach files only: the files uploaded.{{ data.<step>.simulated }}—boolean. true when the write was described instead of done (test run).{{ data.<step>.summary }}—string. The one-line summary in the member’s language.
Operations
- Create a task — title, description, assignee (an email address or
me),YYYY-MM-DDdue date, optional section. - Update a task — complete or reopen, rename, change the due date.
- Comment on a task.
- Attach files to a task — the email’s attachments or those added by an earlier step.
- Get a task and List a project’s tasks (open ones, or all).