Smart value block helpers (#if, #for) in Jira Automation fail or behave inconsistently when using functions inside, especially with dynamic property access, array iteration, and function calls in block conditions or within loops.
Example-
Given config = [{"version": "1.2.3", "env": "PROD"}, {"version": "1.2.4", "env": "TEST"}]
When attempt to iterate and filter using -
{{#for(jsonStringToObject(config))}}
{{#if(equals(version, "1.2.4"))}}
{{env}}
{{/if(equals(version, "1.2.4"))}}
{{/for(jsonStringToObject(config))}}
Then
-this produces no output (empty),
- no error is shown,
- documentation is unclear if this feature has issues.
Expected result:
- Block helpers should support function calls and dynamic conditions,
- If not supported, documentation should clearly state the limitations and advise a roadmap.
Any suggestions?