Magidoc

deleteAssignment
Mutation

Delete one or more assignments. The input shape selects the mode: assignment.id deletes a single assignment; assignmentIds plus projectId deletes the listed assignments; sliceId plus projectId deletes every assignment on every todo in that slice. Both bulk modes require update access to the project and report the deleted records in assignments.

Deletes are hard deletes with cascades and safeguards: removing a project-level assignment also removes that user's todo assignments within the project, and removing the project's last "admin" or "admin+autoassign" assignment, or a stack's last "stack_admin", is rejected. Removing a todo assignment cleans up the user's empty time entries on the todo and redistributes work effort to the remaining assignees; deleting the last assignment of a personal (no-slice) todo deletes the todo itself, and when a personal- workspace todo changes ownership as a result, the new workspaceId is returned.

For single deletes, users may always delete their own assignments; otherwise the updateAssignment access rules apply (workspace admin, project admin, or todo assignee for todo assignments). Returns AssignmentResult.

Arguments

#

assignment

Non-null

Assignment payload.

Response

#

Returns AssignmentResult .

Example

#