英文:
How to get a list of overdue tasks per person via the clickup API
问题
- 直接的方法
如果要检查Clickup应用中的开发工具,有一个请求
https://app.clickup.com/home/team/{team_id}/inbox
带有负载
{userid: user_id, overdue_only: true, sort_by: "dueDate", sort_dir: -1, reminder_position: "top"}
这将返回一个过期任务和提醒的ID列表。这在某种程度上回答了我的问题,但它是未记录的,所以我不想某天醒来看到这个端点被废弃。
- 使用文档
这个想法是硬编码团队ID,获取所有团队的空间列表,然后获取每个空间的文件夹列表,接着获取每个文件夹的列表,然后获取每个空间的没有文件夹的列表,最后获取根据列表的分配人进行筛选的任务列表。对于一个简单的任务来说,这听起来太麻烦了。
有更好的建议吗?
英文:
1. Straightforward approach
If to check the dev tools in the Clickup app, there's a request
https://app.clickup.com/home/team/{team_id}/inbox
with payload
{userid: user_id, overdue_only: true, sort_by: "dueDate", sort_dir: -1, reminder_position: "top"}
That returns a list of overdue tasks+reminders IDs. It kinda answers my question, but it is undocumented, so I don't want really to wake up one day and see this endpoint is abandoned.
2. Using the documentation
The idea is to hardcode team id, get a list of all spaces per team, then a list of folders per space, then a list of lists per folders, then a list of folderless lists per space, then a list of tasks with filter on assignees per list of lists. Sounds like too much headache for a simple job.
Any better suggestions?
答案1
得分: 0
根据Clickup支持团队的建议,目前最佳选项是使用筛选任务:
英文:
As recommended by the Clickup support team, the best option (as of current version) is to use filtered tasks:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论