Magidoc

projectsTodos
Mutation

Returns todos across the specified projects that are either due on or before the given dueDate, or whose startDate is on or before the dueDate. A todo is included when at least one of its dates is set and falls on or before the cutoff; todos with neither date set, or whose set dates all fall after the cutoff, are excluded. Completed todos are included in the result; if the caller wants only open work, they must filter client-side on the Todo's progress field (progress >= 100 = done).

Access control is applied per project: a project from projectIds contributes todos only when the calling user is a member of its workspace and additionally is a workspace admin, holds a project role of admin or admin+autoassign, or is assigned to the project's parent Stack. Projects that fail this check are silently skipped rather than raising an error. Pie's OMP Tasks "Teams Plate" view uses this query for cross-project deadline planning.

Use projectTodos instead when you need the full task list for a single project without date filtering.

Arguments

#

dueDate

Non-null

projectIds

[Int !]!
Non-null

Response

#

Returns [Todo ].

Example

#