Roboteka
Roboteka · Robots · Change task observers

Change task observers

The "Change task observers" robot manages the observer list of a task in Bitrix24 (Alaio) business processes and robots. It takes a task ID, an action, and a list of employees: add appends observers to the current ones, remove drops the specified ones, replace overwrites the whole list. It returns a Success Y/N flag and the resulting observer count.

The robot changes task observers without touching its other fields — the standard Edit task action in processes overwrites the list instead of appending to it. The input is the task ID, the action, and the employees: in add mode the current observers are kept and new ones are appended, in remove mode the specified ones are dropped, in replace mode the list is overwritten entirely (an empty list in replace clears the observers). Typical use cases: bring a department head in as an observer on escalation; drop a departed employee from observers across active tasks; swap observers when a project is handed over. If the task is not found, Success = N is returned. It returns the Y/N flag and the resulting observer count — use them in the next steps of the business process.

What gap it closes

A manager wants to follow the team's tasks, but observers are added by hand and half the tasks are missed. When the team changes, old observers are also removed from each task by hand. This robot adds, removes or replaces the observers of a task by ID and keeps the existing ones when adding.

How to set it up

Put the numeric task ID in "Task ID" and the employees in "Observers". The action is one word: add, remove or replace. Typical cases:

  1. A manager observes every new task of a project: in the project's task automation, on the first stage, add the robot with the current task's ID and action add.
  2. Bring a manager into an overdue deal task: find the task with the task search robot by the link D_ plus the deal ID, then pass "ID of the first task found" here with action add.
  3. Remove someone who left the team: action remove, that employee in "Observers". Everyone else stays.
  4. Set an exact list: action replace. With "Observers" empty, replace clears the list.

The robot changes one task per run. To process every task of a deal, run it in a workflow loop over "All found IDs".

If the robot returns an error

Any word other than add, remove or replace, and an empty action, counts as add: a typo adds people instead of removing them.

"Error: no observers specified": "Observers" is empty with add or remove.

"Error accessing the task": there is no task with this ID, or the user who started the process cannot edit it.

"Resulting observer count" shows how many observers remain after the change, a quick check that the list did not end up empty.

Works together with

What input parameters does the robot accept?

Parameter Type Required? Default
Task ID int yes
Action: add — append, remove — drop, replace — overwrite the list (default add) string —
Observers user —

What does the robot return?

Parameter Type
Success (Y/N) string
Resulting observer count int

What errors can the robot return?

The robot writes these messages to the business process log when it cannot complete a step. The text tells you what to fix in the settings or the data.

  • Error: task ID is not set
  • Error: no observers specified
  • Error accessing the task

Scenario: escalating an overdue task

  1. A task misses its deadline and the process fires
  2. The robot in add mode appends the manager to the task observers
  3. When Success = Y the process notifies the manager about being added

Related robots

Related articles