4 min read

createTask Documentation

Purpose

This node is designed to facilitate the creation of tasks within Asana, a project management tool. It streamlines the task creation process by allowing users to specify various parameters, including the task's name, notes, due dates, and assignments. This function is particularly useful for automating task creation through integrations within the Vantage analytics & data platform, allowing organizations to efficiently manage project workflows.

Settings

This node includes several configurable settings that impact task creation. Below, the settings are outlined in detail:

1. Name

2. Notes

3. Project Gid

4. Workspace

5. Assignee

6. Due On

7. Start On

How It Works

This node functions as follows:

  1. Receives inputs, configuration settings, and context as parameters.
  2. Extracts task details from provided inputs or defaults.
  3. Validates that the task name is present; if not, returns an error response.
  4. Establishes a connection to the Asana API using a secure connection.
  5. If no workspace or project ID is specified, it auto-resolves the first available workspace.
  6. Calls the Asana API to create the task with the specified parameters.
  7. Returns an output object containing the task's globally unique identifier (gid), name, URL, and creation status.

In the event of an error, either from user input validation or the Asana API, an appropriate error message is returned.

Expected Data

This node expects the following data structure from the user, organized under inputs:

json
{
    "name": "String - Required task name",
    "notes": "String - Optional task notes",
    "projectGid": "String - Optional project ID",
    "workspace": "String - Optional workspace ID",
    "assignee": "String - Optional assignee ID",
    "dueOn": "String - Optional due date in Asana format",
    "startOn": "String - Optional start date in Asana format"
}

Use Cases & Examples

Use Case 1: Automating Task Creation for Marketing Campaigns

A marketing team can automate the creation of tasks for each campaign stage (e.g., Idea, Development, Review), ensuring all team members are aware of their responsibilities and deadlines.

Use Case 2: Daily Standup Task Generation

A project manager might want to create daily standup tasks automatically for the team, ensuring that each member has a dedicated task on the project board to update their progress.

Detailed Example: Daily Standup Task Creation

To create a task for a daily standup meeting, this node might be configured as follows:

json
{
    "inputs": {
        "name": "Daily Standup Meeting",
        "notes": "Brief updates to share each team member's progress.",
        "projectGid": "1234567890",
        "workspace": "0987654321",
        "assignee": "user@example.com",
        "dueOn": "2023-10-20",
        "startOn": "2023-10-20"
    }
}

In this example:

The result will yield a new task in Asana with the specified details, helping the team stay organized and aligned.