You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-20 13:03:14

ioannos
Member
Registered: 2022-06-20
Posts: 3

Business Rules for Tickets - Active Tickets

Hello,

I've been trying to apply a certain rule to affect already opened tickets but can't get it to work. The rule I want to apply is as follows:

Conditions: Ticket is Validated AND Ticket Category is "X"
Action: Add "Y user" in ticket's Watchers (or observers)

The flow is like this:

- Requester fills a form which auto-generates a ticket that needs validation
- The Validator validates the ticket
- The rule checks both conditions as above and adds a 3rd actor as a Watcher
- The Watcher (or Observer) gets a notification email containing the ticket's information

Thanks

Offline

#2 2022-06-20 13:29:00

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Business Rules for Tickets - Active Tickets

Rule conditions function more like triggers than conditions. This means that in general, the conditions must match against the changes being made in the update.
For your example, you would need to have the ticket validated and the category changed to be "X" within the same update operation.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2022-06-20 13:43:55

ioannos
Member
Registered: 2022-06-20
Posts: 3

Re: Business Rules for Tickets - Active Tickets

Yeah, that's what I figured. For now, I removed the validation from the auto-generated ticket and enabled it on the form. So the validator validates the form and then the ticket gets generated with my rule based only on the category criterion.

Thanks

Offline

Board footer

Powered by FluxBB