asana

Search Tasks in Workspace

TOOL
Slug
ASANA_SEARCH_TASKS_IN_WORKSPACE
Version
20261116_01
Toolkit
asana
Search tasks in an Asana workspace using task, date, location, tag, and custom-field filters, with optional sorting and result fields. When the plan does not provide workspace search, unsupported filters are dropped by the reduced /tasks fallback.
text
STRING
Search for tasks containing this text in name or notes. At least one search filter must be provided.
limit
INTEGER
Maximum number of results to return (1-100).
sort_by
STRING
Field used to sort results. Defaults to modified_at in Asana.
Options: due_date, created_at, completed_at, likes, modified_at, relevance
tags_any
ARRAY<STRING>
Return tasks having any of these tag GIDs.
completed
BOOLEAN
Return only completed tasks when true or incomplete tasks when false.
opt_fields
ARRAY<STRING>
Additional fields to include in each task object; see Asana API docs for available fields.
opt_pretty
BOOLEAN
Pretty-print the JSON response with indentation (useful for debugging).
assignee_any
ARRAY<STRING>
Return tasks assigned to any of these user GIDs; use 'me' for current user or 'null' for unassigned tasks. At least one search filter must be provided.
due_on_after
STRING
Return tasks due after this ISO 8601 date (YYYY-MM-DD).
projects_any
ARRAY<STRING>
Return tasks in any of these project GIDs. Must contain valid numeric Asana project identifiers (e.g., '1205766922013215'). At least one search filter must be provided.
sections_any
ARRAY<STRING>
Return tasks in any of these section GIDs. If projects_any is also set, Asana returns tasks matching either filter.
due_on_before
STRING
Return tasks due before this ISO 8601 date (YYYY-MM-DD).
workspace_gidrequired
STRING
Numeric GID of the workspace to search. Must be a valid numeric workspace identifier (e.g., '1205766922013215'). Note: Unlike assignee_any, 'me' is not a valid value for workspace_gid - use a numeric GID obtained from the workspaces endpoint.
resource_subtype
STRING
Filter by task subtype. At least one search filter must be provided.
Options: default_task, milestone, approval, custom
custom_field_filters
ARRAY<OBJECT>
Custom-field predicates. Each item becomes custom_fields.{custom_field_gid}.{operator}. Operator support depends on field type: is_set for all fields; value for text, number, enum, or date; starts_with, ends_with, and contains for text; less_than and greater_than for number; before and after for date.
valuerequired
BOOLEAN | STRING | INTEGER | NUMBER
Filter value: boolean for is_set; string for text, enum GID, or ISO date; number for numeric comparisons.
operatorrequired
STRING
Asana custom-field search operator. Supported operators depend on the custom field type.
Options: is_set, value, starts_with, ends_with, contains, less_than, greater_than, before, after
custom_field_gidrequired
STRING
Numeric GID of the custom field to filter on.