[ZBXNEXT-4290] trigger.get auto-expanding functions but not macros Created: 2017 Dec 20  Updated: 2023 Nov 17

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A)
Affects Version/s: 3.4.4
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Herbert Buurman Assignee: Alexander Vladishev
Resolution: Unresolved Votes: 3
Labels: api, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-8512 Ability to get trigger parameters wit... Closed

 Description   

Currently there is an argument `expandExpression` which expands both functions and macros, but I would like the functions to be expanded by default and not the macros.
The reason I prefer this is to have the trigger.get API call return the same contents for the expression as the website does when viewing a trigger. Functions are hidden when using the webinterface, and as such, the webinterface shows the expression with the functions expanded, but with the macros as they are.

To summarize: I would move to to always expand functions in the (trigger.get) API, and use `expandExpression` to only (additionally) expand macros.


Generated at Fri Apr 26 20:30:10 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.