Change priority headings for a task with the api

∥☆過路亽.° 提交于 2019-12-22 10:07:26

问题


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.



来源:https://stackoverflow.com/questions/11367058/change-priority-headings-for-a-task-with-the-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!