使用受让人信息获取项目中的体式任务 [英] Get asana tasks in project with assignee information

查看:28
本文介绍了使用受让人信息获取项目中的体式任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检索项目中的体式任务.我想在同一个查询中检索受让人信息.我尝试了这个查询并获得了受让人 ID:

I am trying to retrieve asana tasks within a project. I would like to retrieve assignee information in the same query. I tried this query and got assignee id:

curl -u <key>: "https://app.asana.com/api/1.0/projects/<project-id>/tasks?opt_fields=name,created_at,assignee

我想获取受让人姓名.所以我包括opt_expand=assignee":

I want get assignee name. So I include "opt_expand=assignee":

curl -u <key>: "https://app.asana.com/api/1.0/projects/<project-id>/tasks?opt_fields=name,created_at,assignee&opt_expand=assignee

我仍然没有获得受让人姓名.有什么方法可以做到这一点?

I still don't get assignee name. What's the way to do this?

谢谢

推荐答案

(我在 Asana 工作)

(I work at Asana)

opt_fieldsopt_expand 之间的相互作用实际上有点复杂,我们应该在文档中澄清.后者最终被前者取代——而不是与前者相加.

The interplay between opt_fields and opt_expand is actually a bit complicated, we should clarify in the documentation. The latter ends up superseded by - not additive with - the former.

实现您想要的最佳方法是不使用 opt_expand 并将 assignee.name 添加到 opt_fields.

The best way to achieve what you want would be to NOT use opt_expand and to add assignee.name to the list of fields in opt_fields.

这篇关于使用受让人信息获取项目中的体式任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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