Delegates tasks to a different user.
Example:
const { workflow } = tisa;
const taskIds = [
"7a417b6c-9c25-4b3a-b5bf-ae3d1595cb79",
"ee67d0ce-eebc-484a-9a9a-1b3f0f644751"
];
const delegateToUserId = 23;
await workflow.tasks.delegate({ taskIds, delegateToUserId });
Returns task by id.
Example:
const { workflow } = tisa;
const taskId = "f9bdbe2d-f709-4828-a71e-e84a0a0fbb16"
const { data: task } = await workflow.tasks.getById(taskId);
console.log(task);
Fetches all tasks assigned to the current user.
Example:
const { workflow } = tisa;
const { data: tasks } = await workflow.tasks.getMine();
console.log(tasks);
Example: