[ZBX-21255] Macro funcitons aren't working on map element labels Created: 2022 Jun 27 Updated: 2024 Jul 25 Resolved: 2023 Aug 16 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 6.0.5 |
Fix Version/s: | 6.0.21rc1, 6.4.6rc1, 7.0.0alpha4, 7.0 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Igor Gorbach (Inactive) | Assignee: | Alexander Vladishev |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() |
||||||||||||
Issue Links: |
|
||||||||||||
Team: | |||||||||||||
Sprint: | Sprint 103 (Aug 2023) | ||||||||||||
Story Points: | 1 |
Description |
Steps to reproduce: Create any map element Use any float item into the label with fmtnum macro function usage to limit digits after the comma, as it had been described into documentation https://www.zabbix.com/documentation/current/en/manual/config/triggers/expression#example-17 Example Load: {{?last(/Zabbix server/system.cpu.load[all,avg5])}.fmtnum(1)} Result - Expression Macro working, trigger function not Expected Expression macro is allowed to use in map element labels, macro functions should work as well Similar behavior on 6.0.0-6.0.5 versions
|
Comments |
Comment by Alexander Vladishev [ 2022 Sep 04 ] |
Expression macros in map element and shape labels are supported with some limitations. |
Comment by Constantin Oshmyan [ 2022 Dec 12 ] |
sasha wrote:
Yes, but the example in "Description" of this issue does use exactly the last() function. |
Comment by Alexander Vladishev [ 2023 Aug 11 ] |
Fixed in:
|