更改优先级为标题与API任务 [英] Change priority headings for a task with the api

查看:153
本文介绍了更改优先级为标题与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.

卷曲-u API_KEY: https://app.asana.com/api /1.0/tasks/task_id/addProject -D项目= 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天全站免登陆