waghanza
waghanza

Reputation: 173

Get task from several assignee / team

I need to get a list of tasks for several persons (team members).

I see that in the API I can specify one assignee.

Could I specify a list of assignee or a team id to get task related to several members ?

Regards,

Upvotes: 0

Views: 51

Answers (1)

Mark Yao
Mark Yao

Reputation: 86

Unfortunately, I don't think there is a great way to fetch all tasks assigned to a list of people, or all tasks in a team.

What you can do is:

  • Multiple Assignees: fetch the tasks for a particular assignee (/tasks?workspace=workspace_id&assignee=user_id&limit=20) and repeat for all users in your list
  • Tasks in a Team: fetch projects in the team (/teams/:team/projects?limit=20), and then for each project, fetch tasks in that project (/projects/:project/tasks?limit=20)

Please remember to paginate :)

Upvotes: 1

Related Questions