我正在使用python asana API
https://github.com/Asana/python-asana
使用这个方法,如果我指定任务分配者和工作区,很容易获得工作区中的所有任务,如下所示
task_fields = ["this.workspace", "this.name", "this.created_at", "this.completed", "this.assignee_status", "this.completed_at", "this.name", "this.project"]
tasks=client.tasks.find_all({"opt_fields":task_fields}, assignee = 'xxxxxxxx', workspace = xxxxxx, iterator_type='items')
但是,我想做一些任务维护/修剪,并希望得到所有任务的清单,没有分配给任何人。我相信这个API中的assignee字段不接受'null',我不能在没有指定assignee的情况下进行此查询。在
有人知道怎么做吗?在
虽然可以使用
assignee=null
创建和更新任务,但不能查询未分配的任务。你需要得到所有你想删减的任务,然后过滤掉你这边未分配的任务。在相关问题 更多 >
编程相关推荐