#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:
-
The group change event occurs, a new value for the group appears.
-
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.
-
-
-
If there is no Responsible or he is in Offline status, then nothing is done.
Instructions
-
Log in to Swarmica as Administrator
-
Create a script in Settings - Scripts for the Administrator role

-
On the page that opens, add the script trigger_unset_responsible_on_group_change.py
-
Create an Event Action (Script) in Settings - Event Actions

-
On the page that opens, select the created script (steps 2-3) as the Action
-
Add the condition:
Event type = Ticket group changed
- 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