如何在 Asana 中按用户获取任务 [英] How to get tasks by user in Asana

查看:21
本文介绍了如何在 Asana 中按用户获取任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 Asana API 来让自己成为一个小工具,以概览分配给我的所有任务.

I've just started using the Asana API to make myself a little tool to get an overview of all tasks assigned to me.

我可以做各种各样的事情,比如按项目获取所有工作组、项目、用户、任务等.但不知何故,我找不到如何获取每个用户的所有任务.

I can do all kinds of things, like getting all Workgroups, Projects, Users, Tasks by Project etc. But somehow I cannot find how to get all Tasks per user.

当您登录 Asana 时,您会看到分配给您的所有任务的概览.这就是我尝试使用 API 实现的目标.您会在下面找到我现在正在使用的 GitHub 项目.

When you login to Asana, you get an overview of all tasks assigned to you. That's what I try to achieve using the API. Below you'll find the GitHub project I'm using right now.

Github:Asana API

推荐答案

我想我明白你在问什么.从文档,在Querying for Tasks下,它为此,建议使用 assignee 参数进行过滤.标题为在工作区或组织中显示分配给我的任务的相邻示例似乎特别有用.您可以向以下对象提出请求:

I think I understand what you're asking. From the documentation, under Querying for Tasks, it suggests using the assignee parameter for filtering for this purpose. The adjacent example entitled Show tasks assigned to me in a workspace or organization seems particularly useful. You would make a request to:

/tasks?workspace=14916&assignee=me

如果您想要跨所有工作区的所有任务,则必须遍历您的工作区并进行此类查询.

If you want all tasks across all workspaces, you'll have to iterate over your workspaces and make this kind of query.

这篇关于如何在 Asana 中按用户获取任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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