This operation updates task metadata. Use it when a script needs to change task properties such as the name, description, priority, or assignee.
The base request is:
updateTask(taskId, updateTaskPayload)
Use UpdateTaskPayload when a script needs to update task metadata.
The following example updates multiple task properties:
const updateTaskPayload = {
name: 'Updated review task',
description: 'Review updated invoice details.',
priority: 75,
assignee: variables.assignee
};
variables.task =
new RuntimeTaskService()
.updateTask(
variables.taskId,
updateTaskPayload
);
In this example:
- name: 'Updated review task' specifies the new task name.
- description: 'Review updated invoice details.' specifies the new task description.
- priority: 75 specifies the new task priority.
- assignee: variables.assignee specifies the user to assign to the task.
- updateTask(...) updates the task with the metadata provided in UpdateTaskPayload and assigns the resulting task object to the task process variable.