updateTodo Mutation
Updates an existing todo. id selects the todo; todo carries the
changes - only the provided input fields are written, but
todo.title is required by the input type, so pass the current
title when not changing it. Likewise pass the current position,
otherwise the todo is re-sorted to the end of its slice. The caller
must be a workspace admin, a project admin, or assigned to the todo
(for standalone todos: assigned to it or admin of the personal
workspace); inaccessible or unknown ids fail with not_found.
Structural rules: changing sliceId/boxId moves the todo and its
subtasks; the box must belong to the target slice; workspaceId
cannot be changed; jiraId can only be set while previously null.
When a todo with subtasks receives progress, date, duration, or
location changes, its own dates, duration, and progress are cleared
(derived from subtasks), and setting progress to 0 or 100 on such
a parent cascades that value to all subtasks. Side effects: setting
progress to 100 emails assignees of dependent (successor) todos; a
due-date change by a non-admin notifies project admins (subject to
their notification settings); snoozeDate is stored per calling
user, not on the shared todo.
Returns TodoMutationPayload with the updated todo, affected
parentTodo and subtasks, and recalculated progress, slices,
and boxes. Prefer moveTodos for relocating several todos at once
and setProjectTodosProgresses for bulk progress updates.
Arguments
#
Response
#
Returns TodoMutationPayload .
Example
#
updateTimeItem
updateTodoChecklist
