Problem with report template. "If statement" with checking "if asset is compromised" and trying to filter out my output, e.g. make table only with compromised assets, use of {% if asset.compromised %} not working.
And also it has strange logic, cause if using this condition in usual text it presents blank output, like "statement is false", but in case from example doesnt make empty table, it shows all of assets, like if each one is compromised, like "statement is true"
To Reproduce
Steps to reproduce the behavior:
- Create new case and add some assets with different compromised statuses
- Add any report template, that goes with {%for asset in assets%} or {%tr for asset in assets%} use this condition {% if asset.compromised %} example {% endif %} {% endfor %}
- Generate report from case with this template
- See that condition doesnt work
Expected behavior
Correct process with if condition
IRIS server version:
v2.4.22
Additional context
I used this statement from your wiki, and also from demo report template for investigation. Cause in Reports section in wiki small piece of information how to work with conditions in iris report templates,.
Thank you!
Problem with report template. "If statement" with checking "if asset is compromised" and trying to filter out my output, e.g. make table only with compromised assets, use of {% if asset.compromised %} not working.
And also it has strange logic, cause if using this condition in usual text it presents blank output, like "statement is false", but in case from example doesnt make empty table, it shows all of assets, like if each one is compromised, like "statement is true"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct process with if condition
IRIS server version:
v2.4.22
Additional context
I used this statement from your wiki, and also from demo report template for investigation. Cause in Reports section in wiki small piece of information how to work with conditions in iris report templates,.
Thank you!