Edits multiple tasks using the specified operation.

Returns MultiStatus including the list of successful and failed tasks. Supported Operations: <ul>&gt; <li>movetoproject: Moves all tasks to a new project.</li><li>movetotasklist: Moves all tasks to a new task list inside the same project.</li><li>moveundertask: Moves every selected task (and their subtasks) under the specified parent task, validating project boundaries.</li><li>setdates: Sets the due and optionally start date for all tasks.</li><li>adjustdates: Offsets start and due dates by the specified number of days while respecting the user's timezone.</li><li>addtags: Adds a list of tags to all tasks in the list that don't already have the tag.</li><li>delete: Deletes all tasks. Optional including time trackings.</li><li>changetypeofwork: Changes the type of work for a list of tasks. Optionally also for the related timetrackings.</li><li>assignusers: Assigns a list of users to a list of tasks.</li><li>unassignusers: Unassigns a list of users from a list of tasks. If the UserIds are not provided, all users are unassigned.</li><li>setprio: Sets the prio flag for a list of tasks.</li><li>changetaskstatus: Sets the task status for a list of tasks.</li><li>copy: Creates copies of all specified tasks (including subtasks) and reorders them to maintain hierarchy.</li><li>plannerbatch: Multiple operations to a single task. Used in the planner.</li></ul><Check title="Required Permissions" icon="key">The user must have `write` permissions on all tasks as well as related entities modified by the operation.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

operationstringRequired
The operation to perform on all tasks.

Request

The model describing the batch task operation.
taskIdslist of stringsRequired
The list of task ids to perform the batch operation on.
newTaskListIdstring or nullOptionalformat: "uuid"
The id of the new task list. Needed if operation is 'movetotasklist'. Optional if operation is 'movetoproject'.
removeFromCurrentListboolean or nullOptional
Whether to remove the task from all its current task lists. Optional for operation 'movetotasklist'.
newProjectIdstring or nullOptionalformat: "uuid"
The id of the new project to move the tasks to. Needed if operation is 'movetoproject'.
newParentTaskIdstring or nullOptionalformat: "uuid"
The id of the task that will be the new parent of the selected tasks. Needed if operation is 'moveundertask'.
newTaskStatusIdstring or nullOptionalformat: "uuid"
The id of the new task status id to change the tasks to. Needed if operation is 'movetoproject' or 'changetaskstatus'.
newDueDatedatetime or nullOptional
The new due date for the tasks. Optional for operation 'setdates'. If not set, due and start date will be removed.
newStartDatedatetime or nullOptional
The new start date for the tasks. Optional for operation 'setdates'. Only gets used when NewDueDate is set.
removeDueDateboolean or nullOptional
Whether to remove the due date. Required for operation 'setdates'.
removeStartDateboolean or nullOptional
Whether to remove the start date. Required for operation 'setdates'.
tagslist of objects or nullOptional
List of tags to add to the tasks. If task already has tag, tag is skipped.
deleteTimeTrackingsboolean or nullOptional
Whether to delete the timetrackings of each task when deleting tasks. Optional for operation 'delete'.
newTypeOfWorkIdstring or nullOptionalformat: "uuid"
The new type of work id for the tasks. Required if operation is 'changetypeofwork'.
changeTimeEntriesboolean or nullOptional
Whether to change the type of work of the timeentries for each task aswell. Optional for operation 'changetypeofwork'.
userIdslist of strings or nullOptional

Depending on the batch operation, it can be either the ids of the user to assign (‘assignusers’, required) or the ids of the user to remove (‘unassignusers’, optional, if not provided unassigns all users).

removeOldAssignmentsboolean or nullOptional
Whether to replace or add user assignments to a task that has users already assigned. Optional for operation 'assignusers'.
isPrioboolean or nullOptional
Whether to set the tasks to be prio or not. Required for operation 'setprio'.
daysOffsetdouble or nullOptional

In case of an adjust date operation, define the number (positive or negative) of days that will be added/subtracted to the task dates. It can be a decimal number (fraction of day)

adjustSuccessorsboolean or nullOptional
If set to true, it will adjust the dates of successor tasks as well.
adjustSubtasksboolean or nullOptional
If set to true, it will adjust the dates of subtasks of selected tasks. If set to false, it will only adjust the dates of the selected tasks.
plannerDataobjectOptional
Data specific to planner batch operations for handling drag and drop in the planner UI.

Response

Multi-Status

okobject or null
notFoundobject or null
unauthorizedobject or null
badRequestobject or null

Errors