Open redddcyclone opened 1 year ago
Hi,
I confirm there is 2 issues here.
1) When an item is linked to a ticket, the "Item type" criteria does not work.
To reproduce on "add" rules:
To reproduce on "update" rules:
2) Rule is applied but item is not actually linked to ticket.
To reproduce on "update" rules:
Additional context: this is a very old rule critria from GLPI < 0.85, which mean it was targeting the itemtype
field of the glpi_tickets
table.
After GLPI 0.85 was released, this field was removed from the table as GLPI now allows multiple items to be linked to a ticket using a dedicated relation table.
The rule criteria was however not updated, which mean it does not function anymore.
Code of Conduct
Is there an existing issue for this?
Version
10.0.7
Bug description
Basically, I'm trying to create a rule for auto adding a follow-up to the ticket when I assign a computer to a ticket. I'm trying to use "Item type" for the criteria, and the rule pass testing, but it never applies. Tried to use another criteria for adding the follow-up and it worked. It just won't work with the "item type" criteria.
After some time, I noticed that the rule applies only when you select an item in the ticket screen but don't actually add it to the ticket (i.e. choose it on the list but don't click "+ Add" button, then save the ticket).
This is obviously useless, because although the rule is processed, the item is not added to the ticket.
Relevant log output
Page URL
No response
Steps To reproduce
Your GLPI setup information
Instruções de instalação e configuração
Server
GLPI constants
Libraries
SQL replicas
Plugins list
Anything else?
No response