Change priority headings for a task with the api

2019-05-16 18:48发布

问题:

I know it's possible to create a priority headings with the api (a task ends with :).

Someone knows if it's possible to assign a priority headings to a task thanks to the api ?

Thanks,

Ludovic

回答1:

Even though this feature is not supported literally by the API, you can still use a workaround to do it.

First, get the ID of the priority heading that must be on top of your task.

Then, change the order (priority) of the task with the method "addProject" on the task's endpoint and move it right after the desired priority heading.

curl -u api_key: https://app.asana.com/api/1.0/tasks/task_id/addProject -d "project=project_id&insert_after=priority_heading_id"



回答2:

(I work at Asana)

That is currently not supported - the API does not yet provide a way for you to reprioritize tasks or move them underneath particular priority headings.



标签: api asana