Roboteka
Roboteka · Catalog · Clear all task tags by ID

Clear all task tags by ID

The Clear All Task Tags robot removes every tag from a Bitrix24 task at once by its ID. It reads the current tags first, so it returns the exact number removed and skips a redundant write when there are none. Handy for resetting all of a task's labels when it moves to a final stage.

The robot fully clears the tag list of a Bitrix24 task by its numeric ID. It first reads the task's current tags: if there are none, no write happens and the robot reports there is nothing to clear; otherwise it writes an empty tag list via tasks.task.update. It returns a Success flag (Y/N) and the number of tags removed. The "when moving to a stage" condition itself is configured in the task automation rules or the business process — the robot just strips all tags from the task whose ID you pass in. Typical scenarios: reset all working labels when a task is closed, clear tags before reusing a task, or normalise labels at the start of a new phase. If you only need to remove specific tags, use the Remove Task Tags robot instead.

What input parameters does the robot accept?

Parameter Type Required? Default
Task ID int yes

What does the robot return?

Parameter Type
Success (Y/N) string
How many tags were removed int

Scenario: remove all tags when a task moves to the "Done" stage

  1. In the stage automation rule add the Clear All Task Tags robot
  2. Set Task ID to the current task
  3. The robot returns Success = Y and cleared_count equal to the number of tags removed

Related robots