Get asana tasks in project with assignee information

送分小仙女□ 提交于 2019-12-07 12:58:04

问题


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

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?

Thanks


回答1:


(I work at Asana)

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.

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.



来源:https://stackoverflow.com/questions/11095933/get-asana-tasks-in-project-with-assignee-information

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