Describe the bug
When using the {ITEM.VALUE} macro in operational data and multiple event generation, Grafana displays the latest item value in the operational data inside the event detail, rather than the value that originally created the problem event.
This behavior is different from Zabbix, where the operational data correctly reflects the value that triggered the problem event.
Steps to Reproduce
Create an item with the following trigger configuration, and populate the item to generate problems.
Observe the behavior in both Zabbix and Grafana.
In Zabbix, the operational data column works as expected, showing the value that triggered the problem event. Grafana, however, displays the latest item value in the operational data, which may not accurately represent the problem.
Upon inspecting the API calls in the browser's developer mode, I noticed that the calls being made are 'trigger.get' and 'problem.get'. The first one obtains the operational data correctly, but the second one obtains only the last value of the item.
I suppose that's the problem, use the last value of the item obtained with the problem.get method instead the operational data obtained with the trigger.get call.
Note: If you enable the operational data column in the Zabbix problems panel, it will correctly display the operational data.
Describe the bug When using the {ITEM.VALUE} macro in operational data and multiple event generation, Grafana displays the latest item value in the operational data inside the event detail, rather than the value that originally created the problem event. This behavior is different from Zabbix, where the operational data correctly reflects the value that triggered the problem event.
Steps to Reproduce
In Zabbix, the operational data column works as expected, showing the value that triggered the problem event. Grafana, however, displays the latest item value in the operational data, which may not accurately represent the problem.
Upon inspecting the API calls in the browser's developer mode, I noticed that the calls being made are 'trigger.get' and 'problem.get'. The first one obtains the operational data correctly, but the second one obtains only the last value of the item. I suppose that's the problem, use the last value of the item obtained with the problem.get method instead the operational data obtained with the trigger.get call.
Note: If you enable the operational data column in the Zabbix problems panel, it will correctly display the operational data.
Software versions