Magidoc

setTodosDependencies
Mutation

Sets or clears a dependency chain across todos of one project. With clear: false, ids is treated as an ordered chain: each todo's predecessor list is replaced with exactly the previous todo in the list (the first todo's existing predecessors are left untouched), and dependent dates are recalculated down the chain. With clear: true, all predecessors of the listed todos are removed. For arbitrary, non-chain dependency graphs set todo.predecessors via updateTodo instead.

Ids that do not belong to projectId are ignored. Requires edit permission on the project, otherwise fails with not_allowed. Returns the affected todos.

Arguments

#

clear

Non-null

False builds the chain; true removes all predecessors of the listed todos.

ids

[Int !]!
Non-null

Todo ids in chain order: each depends on the one before it.

projectId

Non-null

Response

#

Returns [Todo ].

Example

#