You are not logged in.
Hi everyone,
I was testing this but I didn't find a way to do it. I want to compare 2 different fields and, if the condition is true, execute an action.
For exemple: In the computers tab, I'll take the "User alias name" field (filled as user.test@domain) and the "User" field (filled as User Test) and compare them between, if the first field doesn't contain the second field, the status will be changed to "nonconforming"
Can I make a comparasion between two different fields?
Thanks in advance!
Last edited by richard.coelho (2023-07-14 19:08:37)
A newbie trying to learn GLPI!
GLPI 10.0.3
Offline
That isn't supported by the rules engine. It is only really designed to analyze a state change and then perform some actions based on that.
Rules can only be triggered when an item is added or updated.
In order to use fields in the criteria, they have to be a part of that initial save (new items) or part of the changes (updated items).
Both the "User alias name" and "User" fields would have to be changed at the same time.
You cannot access the name field for the "User" and cannot reference other fields in regex patterns.
We have a more complex "Business process management (BPMN)" feature on the roadmap which may open up this functionality in the future.
Otherwise, this seems like something that could be accomplished with a plugin. It is possible one already exists, but I am not sure.
https://plugins.glpi-project.org/#/
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
Hi cconard96,
Oh, I understood. I will try to find a plugin for this situation.
Thanks!!
A newbie trying to learn GLPI!
GLPI 10.0.3
Offline