The user is only allowed to edit tasks they have permissions for. The same applies for related entities like time entries. Returns MultiStatus. Includes the list of successful and failed tasks. Returns BadRequest if the validation for either operation or form fails.
Supported Operations: movetoproject: Moves all tasks to a new project. movetotasklist: Moves all tasks to a new task list inside the same project. setdates: Sets the due and optionally start date for all tasks. addtags: Adds a list of tags to all tasks in the list that don’t already have the tag. delete: Deletes all tasks. Optional including time trackings. changetypeofwork: Changes the type of work for a list of tasks. Optionally also for the related timetrackings. assignusers: Assigns a list of users to a list of tasks. unassignusers: Unassigns a list of users from a list of tasks. If the UserIds are not provided, all users are unassigned. setprio: Sets the prio flag for a list of tasks. changetaskstatus: Sets the task status for a list of tasks.
The name of the operation to execute on the given tasks.
The list of task ids to perform the batch operation on.
The id of the new task list. Needed if operation is ‘movetotasklist’. Optional if operation is ‘movetoproject’.
Whether to remove the task from all its current task lists. Optional for operation ‘movetotasklist’.
The id of the new project to move the tasks to. Needed if operation is ‘movetoproject’.
The id of the new task status id to change the tasks to. Needed if operation is ‘movetoproject’ or ‘changetaskstatus’.
The new due date for the tasks. Optional for operation ‘setdates’. If not set, due and start date will be removed.
The new start date for the tasks. Optional for operation ‘setdates’. Only gets used when NewDueDate is set.
Whether to remove the due date. Required for operation ‘setdates’.
Whether to remove the start date. Required for operation ‘setdates’.
Whether to delete the timetrackings of each task when deleting tasks. Optional for operation ‘delete’.
The new type of work id for the tasks. Required if operation is ‘changetypeofwork’.
Whether to change the type of work of the timeentries for each task aswell. Optional for operation ‘changetypeofwork’.
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).
Whether to replace or add user assignments to a task that has users already assigned. Optional for operation ‘assignusers’.
Whether to set the tasks to be prio or not. Required for operation ‘setprio’.
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)