Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change priority headings for a task with the api

Tags:

asana

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

like image 573
user1507447 Avatar asked May 13 '26 07:05

user1507447


2 Answers

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"

like image 190
danielguajardok Avatar answered May 18 '26 10:05

danielguajardok


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

like image 41
Greg S Avatar answered May 18 '26 09:05

Greg S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!