Skip to content

Searching by section in a project returns all tasks #42

Description

@forjoyilive

Hi there, thanks so much for this MCP, it's been great. Here's an issue I ran into where queries for a specific section were returning ~90 tasks (the whole project) instead of the expected 4 (in a certain section).

Add support for GET /sections/{section_gid}/tasks endpoint

Problem

When trying to retrieve tasks in a specific Asana section, the only available approach is asana_search_tasks with the sections_any parameter. However, this does not reliably filter by section — it returns tasks from the entire project rather than just the specified section.

For example, querying with sections_any set to a section containing 4 tasks returns ~90 tasks from across the project.

Expected behavior

There should be a way to retrieve the tasks that belong to a specific section, equivalent to the Asana API's GET /sections/{section_gid}/tasks endpoint.

Suggested solution

Add a new tool (e.g., asana_get_tasks_for_section) that wraps the GET /sections/{section_gid}/tasks endpoint. Parameters could include:

  • section_id (required) — the section GID
  • opt_fields — optional fields to include on each task
  • completed_since — filter out completed tasks (or a simpler completed boolean)

This would complement asana_search_tasks for cases where you need the actual contents of a section rather than a cross-project search.

Reproduction

// This returns tasks from the entire project, not just the section
asana_search_tasks({
  workspace: "...",
  sections_any: "<section_gid>",
  completed: false
})
// Returns ~90 tasks instead of the 4 actually in the section

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions