Search tasks in a workspace
GET
/workspaces/{workspace_gid}/tasks/search
Tasks
Premium access
402 Payment Required
error.Pagination
limit
query parameter.Eventual consistency
Rate limits
429 Too Many Requests
response if you hit any of our rate limits.Custom field parameters
Parameter name | Custom field type | Accepted type |
---|---|---|
custom_fields.{gid}.is_set | All | Boolean |
custom_fields.{gid}.value | Text | String |
custom_fields.{gid}.value | Number | Number |
custom_fields.{gid}.value | Enum | Enum option ID |
custom_fields.{gid}.starts_with | Text only | String |
custom_fields.{gid}.ends_with | Text only | String |
custom_fields.{gid}.contains | Text only | String |
custom_fields.{gid}.less_than | Number only | Number |
custom_fields.{gid}.greater_than | Number only | Number |
custom_fields.12345.is_set=true
. To match an exact value for an enum custom field, use the gid of the desired enum option and not the name of the enum option: custom_fields.12345.value=67890
.projects.any
and sections.any
, you will receive tasks for the project and tasks for the section. If you're looking for only tasks in a section, omit the projects.any
from the request.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.asana.com/api/1.0/workspaces//tasks/search'
Response Response Example
200 - Example 1
{
"data": [
{
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
}
]
}
Request
Path Params
workspace_gid
string
required
Responses
Modified at 2022-09-13 02:00:32