setProjectTodosProgresses Mutation
Bulk-sets the completion percentage of todos in one slice,
optionally narrowed to one box. Each todosProgresses item carries
a todo id and an integer progress from 0 to 100, or null for not
started; 100 means done. Every target must exist, be non-deleted and belong to sliceId
(and boxId when given). Missing, foreign or duplicate ids and
invalid progress reject the entire command. An empty list is a
no-op that returns stored aggregates.
Requires view access to the slice's project (not_found otherwise).
Requires project administration (including admin+autoassign),
workspace administration, or active assignment to every listed todo.
Pending assignments confer no write authority. A caller who is not an
administrator receives the same unauthorized error for a missing
target and for a target they cannot edit. Unauthorized batches fail
without changes.
Returns ProjectTodosProgressPayload with the recalculated project
progress and per-slice/per-box aggregates. todosProgresses contains
the saved values of the requested tasks only. Sending a parent as 0 or
100 also sets every same-box child, including children omitted from the
request; an explicit child value wins. Those children are not listed in
todosProgresses. When the batch touches a parent that has same-box
children, or one of those children, the parent's stored progress is
cleared. previousProgresses lists the progress every affected task had
before the change, children and cleared parents included. Pass undoToken
and the original requested targets to undo the change. Task changes and aggregate saves are atomic, and subscription
updates follow success. Unlike updateTodo, this path does not email
assignees of successor todos.
Arguments
#
undoToken
Response
#
Returns ProjectTodosProgressPayload .
Example
#
setProjectPriority
setTodosDependencies
