使用 api 更改任务的优先级标题 [英] Change priority headings for a task with the api

查看:24
本文介绍了使用 api 更改任务的优先级标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可以使用 api 创建优先标题(任务以 : 结束).

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

有人知道是否可以通过 api 为任务分配优先标题?

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

谢谢,

卢多维奇

推荐答案

即使 API 不直接支持此功能,您仍然可以使用变通方法来实现.

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

首先,获取必须位于您任务之上的优先标题的 ID.

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

然后,使用任务端点上的addProject"方法更改任务的顺序(优先级),并将其移动到所需的优先级标题之后.

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"

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

这篇关于使用 api 更改任务的优先级标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆