Advanced Search using Custom Task Fields

I am unable to use the advanced search with a newly created custom task field. Here are the details:

Custom Field:
{
“data”: [
{
“gid”: “1201765213794844”,
“custom_field”: {
“gid”: “1201765213797994”,
“name”: “JazzHRId”,
“resource_subtype”: “text”,
“resource_type”: “custom_field”,
“type”: “text”
},
“is_important”: true,
“parent”: {
“gid”: “1201752447178138”,
“name”: “JAZZHR to ASANA Task Integration Zaps”,
“resource_type”: “project”
},
“project”: {
“gid”: “1201752447178138”,
“name”: “JAZZHR to ASANA Task Integration Zaps”,
“resource_type”: “project”
},
“resource_type”: “custom_field_setting”
}
]
}

API details:
REQUEST INFORMATION
Method: POST
URL/Path: https://app.asana.com/api/1.0/workspaces/563372194892424/tasks/search
Headers: Content-Type: application/json
Accept: application/json
Authorization: Bearer :censored:50:18662b8868:
Params: custom_fields.1201765213794844.value=TEST-JazzHR

RESPONSE INFORMATION
Status Code: 404
date: Thu, 03 Feb 2022 19:03:35 GMT
Content: {“errors”:[{“message”:“No matching route for request”,“help”:“For more information on API status codes and how to handle them, read the docs on errors: Asana”}]}

Please advise.

Hi,

Search is with a GET request, not a POST :slight_smile:

1 Like