The Create task action creates a task in an Asana workspace. The action allows you to add the task to multiple projects and attach the task as a subtask to an existing parent task.

Overview

The Create task action provides options to assign the created task to a specific user in the Asana platform and set the due date for the task. You can also enable the Completed check box to indicate that the task is already complete. This option helps when dealing with use cases such as data migration, audit trails, automated workflows that must be logged retroactively. You can specify the parameters directly in the appropriate text box or create and select string variables for each parameter as the input fields support string variables.

Settings

The following settings are available in the Create task action:

Session
Specifies the session name that the Connect action creates. The session name serves as the authentication context for the operation. Choose one of the two options as per the Connect settings.
  • Session name: Select the string variable that stores the session name or enter the session name manually in the text box.
  • Variable: Select the session variable.
Workspace GID
Specifies the GID of the Asana workspace in which the action creates the task.
Name
Specifies the name for the task that the action creates.
Projects
Specifies the GIDs of the Asana projects to which the action associates the new task. You can assign a task to multiple projects by entering the GIDs of the projects in a comma-separated format.
Assignee (optional)
Specifies the GID of the Asana user to whom the action assigns the task.
Due date (optional)
Specifies the due date that the action sets for the created task. Specify the date in YYYY-MM-DD format.
Notes (optional)
Specifies the description for the created task.
Parent (optional)
Specifies the GID of a parent task to which the action attaches the created task as a subtask. Leave this field empty if you are creating a standalone task.
Completed
Specifies the completion status of the task. Enable the check box to mark the task as complete.
Assign response to a variable (optional)

Specifies the output variable to store the response data after the action creates the task. The response data contains the following keys:

  • taskGid - The unique GID of the created task.
  • name - The name of the created task as specified in Name.
  • notes - The description of the task as specified in Notes.
  • due_on - The due date that the action sets for the task as specified in Due date.
  • parent - The parent task to which the action assigns the created task as a subtask. The parent task is specified in Parent.
  • assignee - The user to whom the action assigns the task as specified in Assignee.
  • projects - The projects to which the action assigns the task. The project names of the GIDs specified in Projects.
  • completed - The completion flag that the action sets for the task as specified in Completed.
  • workspace - The workspace in which the action creates the task as specified in Workspace GID. Once created, the task cannot be moved to a different workspace. The workspace details contains the name, GID, and resource type of the workspace.

Use one of the following options to store the response data:

  • Multiple variables: Create and specify individual variables to store specific response data.

    Use the Add variable mapping option to specify the key and the corresponding variable type.

  • Dictionary: Create and specify a dictionary variable to store the entire response data.