嘉尚API用于分配给我项目 [英] Asana API for Projects Assigned to Me

查看:173
本文介绍了嘉尚API用于分配给我项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关分配给我的任务,我看我该怎么办

 卷曲-u< API_KEY计算值:https://app.asana.com/api/1.0/tasks?workspace=14916&assignee=me

我试图做一个快速的页面,打破了我目前的任务,并链接到Asana对于我来说,这样我就可以有自己的仪表板快速

我有我的API密钥


  • 它列出了我的一部分,所有工作区。

  • 如果我点击一个工作区它表明空间内的所有项目

  • 如果我点击一个项目,我只想看到已分配给我的项目里面的任务。


  • 如果我想补充的项目ID,以上面的呼叫,它发送回我每一个项目在项目,而不只是分配给我的。


  • 如果我离开项目编号了,它返回分配给我的所有任务,即使是那些在项目之外。

我错过了什么?

感谢您的帮助!


  

注意:我想补充的体位标记,但它不会出现还不存在



解决方案

我有这个烦恼过 - 它似乎查询任务时不能展开项目 - 你无法通过项目获得的任务...前者实际上是preferred因为你可以通过提供项目中的任务列表,如果你能在项目拓展。

正因为如此,你可以打通的任务列表,然后循环并获得通过任务ID完整的任务,但需要一段时间...

For Tasks assigned to me, I see how I can do

curl -u <api_key>: "https://app.asana.com/api/1.0/tasks?workspace=14916&assignee=me"

I am trying to make a quick page that breaks down my current tasks and links to Asana for me, so I can have my own quick dashboard.

I have my API Key

  • It lists all Workspaces I am a part of.
  • If I click a Workspace it shows all Projects inside of that space
  • If I click a Project I want to see only the Tasks that have been assigned to me inside of that Project.

  • If I add the Project ID to that above call, it sends me back every item in the Project, not just those assigned to me.

  • If I leave the Project ID out, it returns all tasks assigned to me, even those outside of the project.

Did I miss something?

Thanks for any help!

Note: I would add the Asana tag, but it doesn't appear to exist yet.

解决方案

I'm having trouble with this too - it seems you can't expand projects when querying tasks - and you can't get tasks by project... The former is actually preferred since you could provide a task list by project if you could expand on project.

As it is, you can get a list of tasks, then loop through and get the full task by task-id, but that takes a while...

这篇关于嘉尚API用于分配给我项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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