I am attempting to update the task status in Asana through API. However, the status does not seem to be updating.
{
“data”: {
“task_gid”:“${u_task_id}”,
“name”: “${short_description}”,
“assignee”: “${assigned_to}”,
“due_on”: “${due_date}”,
“custom_fields.display_value”: “${u_status}”,
“text”:“${work_notes}”
}
}
A custom field’s display_value is a read-only property. To set the value of a custom field, you’ll need to update the appropriate value property; i.e. text_value, number_value, etc. In the case of an enum (i.e. dropdown list) field which I assume your status field probably is, you’ll need to update the enum_value property with the gid of the enum option that you want to set it to.
That could mean one of two things - I’m not sure which you mean - are you wanting to update the task’s Description field, or wanting to add comments (i.e. at the bottom on the task’s detail pane)?
Response: {“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: Errors”}]}