Je souhaite créer un filtre dans une notification déclenchée sur modification d'un objet.
Ce filtre ne doit fonctionner que lorsque la valeur de priority est passée à 3 (bloquant) et ce quelque soit la valeur précédente.
Mon filtre actuel est le suivant. Le problème est que pour chaque changement de priorité (1, 2, 3), une notification est envoyée.
SELECT Incident AS I1
JOIN CMDBChangeOpSetAttributeScalar AS cs ON cs.objkey = I1.id
WHERE (objclass='Incident' AND attcode='priority' AND newvalue=3 AND oldvalue NOT IN ('1','2')) AND (I1.status NOT IN ('closed','resolved')) AND I1.org_name LIKE 'TEST_PRJ%'
Merci pour votre aide.
Last edit: Arnaud GUILLAUME 2024-07-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Arnaud,
You might get more replies, if you were using english in this forum.
Your filter is totally wrong because as soon as the Ticket has moved one day to the priority three, the filter will always matches.
The filter to apply on a TriggerOnUpdate ( Déclencheur sur la modification d'un objet ) is much simpler, just do:
SELECT Incident WHERE priority='3'
The filter is applied in database after the object has been modified.
And choose "priority" in the fields ( Attributs cibles ) so you are sure to be triggered only when the priority has just changed
Last edit: Vincent @ Combodo 2024-08-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Bonjour,
Je souhaite créer un filtre dans une notification déclenchée sur modification d'un objet.
Ce filtre ne doit fonctionner que lorsque la valeur de priority est passée à 3 (bloquant) et ce quelque soit la valeur précédente.
Mon filtre actuel est le suivant. Le problème est que pour chaque changement de priorité (1, 2, 3), une notification est envoyée.
Merci pour votre aide.
Last edit: Arnaud GUILLAUME 2024-07-16
Hi Arnaud,
You might get more replies, if you were using english in this forum.
Your filter is totally wrong because as soon as the Ticket has moved one day to the priority three, the filter will always matches.
The filter to apply on a TriggerOnUpdate ( Déclencheur sur la modification d'un objet ) is much simpler, just do:
SELECT Incident WHERE priority='3'
The filter is applied in database after the object has been modified.
And choose "priority" in the fields ( Attributs cibles ) so you are sure to be triggered only when the priority has just changed
Last edit: Vincent @ Combodo 2024-08-06