Change priority headings for a task with the api

2019-05-16 18:19发布

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

标签: api asana
2条回答
Luminary・发光体
2楼-- · 2019-05-16 18:42

(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.

查看更多
我想做一个坏孩纸
3楼-- · 2019-05-16 18:51

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"

查看更多
登录 后发表回答