Logo
ХелпдескУправление знаниямиБизнесуТарифыЧто такое KCS?Блог
Русский
Личный кабинет
Автоматизации и интеграции
© 2023 - 2026 ООО «Свормика». Swarmica - Платформа управления знаниями и ресурсами техподдержки. Версия: 6.1.2

#2091: Removing the responsible agent when changing the group

Отредактирована: сегодня

This article describes the instructions for removing the assigned agent when changing the group of a ticket.

Logic:

  1. The group change event occurs, a new value for the group appears.

  2. If there is a Responsible on the ticket, AND he is not in Offline status, then

    • It is checked whether the Responsible is a member of the new group

      • If not, the responsible is removed and no one is assigned.

      • If he is a member of the new group, then nothing is done.

  3. If there is no Responsible or he is in Offline status, then nothing is done.

Instructions

  1. Log in to Swarmica as Administrator

  2. Create a script in Settings - Scripts for the Administrator role

  1. On the page that opens, add the script trigger_unset_responsible_on_group_change.py

  2. Create an Event Action (Script) in Settings - Event Actions

  1. On the page that opens, select the created script (steps 2-3) as the Action

  2. Add the condition:

Event type = Ticket group changed
  1. Change the status to Enabled and click Save

It should look like this:

Problem Diagnosis

You can track the process in the celeryworker container log before running the script:

docker logs swarmica-celeryworker-1 -f --tail 0