4 min read

Add Comment

Purpose

This node is designed to facilitate the seamless addition of comments to tasks within the Asana project management platform. This functionality allows users to enhance task tracking and collaboration by annotating tasks with commentary, which can be critical for team communication and project documentation.

Settings

This node has several important settings that control how it functions. Each setting is crucial for ensuring proper operation and behavior within the context of Vantage.

1. taskGid

2. text

How It Works

This node operates asynchronously as follows:

  1. Input Handling: It receives an object containing the parameters inputs, config, and context. It extracts taskGid and text from these.
  2. Validation: It checks for the presence of the required taskGid and text values. If either is missing, it generates an error response.
  3. Integration: It invokes the the integration connection function, which sets up a connection with the Asana API using the provided context.
  4. Comment Submission: It calls the addComment method on the Asana integration, sending the task ID and comment text.
  5. Response Handling: Upon success, it retrieves the newly created comment data, including its GID and the timestamp of creation, encapsulating them in an output object.
  6. Error Handling: If any exceptions are raised during the API call, a structured error message is returned indicating that the Asana integration encountered an error.

Data Expectations

This node expects the following data structures:

Use Cases & Examples

Use Case 1: Project Management

A project manager wants team members to provide updates on specific tasks within Asana. The manager can use this node to allow team members to comment directly on tasks after meetings or during project reviews.

Use Case 2: Bug Tracking

In a software development environment, developers may need to add comments to tasks representing bugs to describe troubleshooting steps or fixes. Automating this through this node can streamline updates.

Example Configuration

Use Case: Project Management

Scenario: A project manager needs to add a comment to a task in Asana to inform the team about a deadline change.

json
{
    "inputs": {
        "taskGid": "1234567890",
        "text": "Please note that the deadline for this task has been extended to next Friday."
    },
    "config": {},
    "context": {
        "userToken": "Your_Asana_Authentication_Token"
    }
}

Configuration Breakdown:

In this scenario, upon executing this node with the specified configuration, the comment will be successfully added to the task with ID "1234567890", and the team will be notified of the deadline change.