ompTodos Mutation
Returns the tasks (Todos) assigned to the current user across all their
workspaces — the data that powers Pie's On My Plate (OMP) page. The
result combines two flavors of tasks the user is responsible for:
standalone OMP tasks (todos with no project slice — these live in
the user's personal workspace, the only place where new standalone
todos can be created, plus any slice-less todos assigned to the
user) and project tasks (todos belonging to a slice of any
currently-open project in a workspace the user can access). The
filters.name argument
selects a date window and is matched case-sensitively — accepted
values are "Late", "Next 7 days", "Weeks", "Custom days:", and
"Personal tasks with no dates". For "Weeks" and "Custom days:" also
supply filters.start and filters.due.
"Today" is the server's current UTC date. "Late" returns incomplete
tasks (progress below 100) whose due date is before today, excluding
tasks snoozed to today or later. The date windows match a task whose
date span overlaps the window: the span runs from its start date to
its due date, a task with only one of the two dates matches when that
date falls inside the window, and a snooze date replaces the start
date and extends the due date. "Next 7 days" covers today through the
sixth day after it; "Weeks" and "Custom days:" cover filters.start
through filters.due, both inclusive. "Personal tasks with no dates"
returns standalone tasks without a due date. Only "Late" excludes
completed tasks; filter the other windows on progress if you only
want open work.
Only "Late" is paginated: 10 tasks per page, most recently due first,
with total counting every late task and pages past the end
returning an empty list. Every other filter returns all matching
tasks on every page, with total equal to that count, so request
page 1 only. Use this query for "my work" across the whole
account; use projectTodos when you need every task of a single
project (which has no userId filter).
Arguments
#
id
Required for backwards compatibility. Pass the authenticated user id; authentication determines the result scope.
includeLateTodo
Internal flag for the Pie web UI. When true, filters other than "Late" also return the earliest-due late task on page 1 so the UI can offer its "Show Late" shortcut; that task is not counted in total and usually falls outside the requested window. Leave unset to receive only tasks matching the filter.
page
Required 1-based page number. For the "Late" filter each page contains up to 10 tasks; use the returned total to determine whether more pages are available. Other filters return every matching task on every page.
Response
#
Returns OmpTodosData .
Example
#
moveStackProject
projectTodos
