4 min read

Documentation for searchTasks

Purpose

This node facilitate the querying of tasks from the Asana project management platform. It allows users to retrieve specific tasks based on various filters such as text search, assignee, project, completion status, and the number of results. By providing a structured approach to fetching task data, this logic can streamline project monitoring and task management within the Asana ecosystem.

Settings

1. Workspace

2. Text

3. Assignee

4. Project GID

5. Completed

6. Max Results

How It Works

The node operates by gathering inputs and configurations, specifically targeting the Asana workspace to search for tasks. It begins by establishing a connection to Asana through the integration connection. Following this, it checks for a specified workspace. If none is provided, it defaults to the first workspace available.

The function then constructs a search query with the provided filters (text, assignee, project GID, completion status, and the maximum number of results) and fetches tasks from Asana. The results are processed to extract relevant task information (e.g., GID, name, assignee, completion status, project association) and returned in a structured format.

In case of failure during the integration process, the function catches the error and returns an appropriate error message.

Expected Data

This node expects the following data:

Use Cases & Examples

Use Case 1: Task Monitoring

A project manager wants to monitor all tasks assigned to a specific team member for a project currently in progress. They would use searchTasks to retrieve a list of those tasks to check progress and deadlines.

Use Case 2: Reporting Completed Tasks

A business analyst wants to generate a weekly report on completed tasks within a specific project. By using the completed filter, they can easily fetch all tasks marked as done within the last week.

Example Configuration for Use Case 1

Scenario: Retrieve tasks assigned to user U123456 in project P654321 from workspace W987654, limiting to 50 results, and only show incomplete tasks.

json
{
  "inputs": {
    "workspace": "W987654",
    "assignee": "U123456",
    "projectGid": "P654321",
    "completed": "false",
    "maxResults": 50
  }
}

This configuration would return up to 50 tasks specifically assigned to the user U123456, filtered by the project P654321, ensuring that no completed tasks are included.