Skip to content

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
The ports of “Asana”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Asana connection.Asanaasana.apimainmainerror · only with “Follow the Error output”Connection: Asana
The ports of “Asana”: what comes in on the left, what goes out on the right

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 task
    • updateTask — Update a task
    • comment — Comment on a task
    • attach — Attach files to a task: The email’s attachments, or those added by an earlier step.
    • getTask — Get a task
    • listTasks — 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: action is one of createTask, 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: action is one of createTask, 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: action is createTask

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: action is one of updateTask, comment, attach, getTask
  • Expressions: {{ }} accepted

name ​

Title

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 1000 characters at most
  • Example: {{ email.subject }}
  • Shown when: action is one of createTask, updateTask
  • Expressions: {{ }} accepted

notes ​

Description

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 50000 characters at most
  • Example: {{ email.bodyText }}
  • Shown when: action is createTask
  • 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: action is createTask
  • 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: action is one of createTask, updateTask
  • Expressions: {{ }} accepted

completed ​

Status

  • Type: One choice (options)
  • Required: No
  • Default: unchanged
  • Options:
    • unchanged — Unchanged
    • true — Completed
    • false — Not completed
  • Shown when: action is updateTask

text ​

Comment

  • Type: Long text (text)
  • Required: Yes
  • Default: "" (empty)
  • 50000 characters at most
  • Shown when: action is comment
  • 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 with image/*.
    • byName — By file name: By name pattern: *.pdf, invoice-*.
  • Shown when: action is attach

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: action is attach and selection is byMime
  • 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: action is attach and selection is byName
  • Expressions: {{ }} accepted

includeCompleted ​

Include completed tasks

  • Type: Yes / no (boolean)
  • Required: No
  • Default: false
  • Shown when: action is listTasks

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 20
  • Whole number, from 1 to 100
  • Shown when: action is listTasks

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-DD due 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).

Loop & Roll — the workflow builder for email.