In my custom Word R4J export, I need to filter on a certain label, and only export the issues that have that label. How can I do this?
Currently I am using an if statement like the one below, which is not working:
[[\if $.labels = “CustomLabel”]]
Hi @E B
I'm Angelica from EaseSolutions, vendor of R4J plugin.
Since Labels returns a list of Label context items, you would need to iterate through them like:
[[\each $.labels]] [[\if $. = “CustomLabel”]] ... [[/if]] [[/each]]
You mentioned you wanted to export issues based on this condition, so you may need to use the variable statement in combination with the above.
Hope this helps! In any case, please feel free to contact our friendly support team for further assistance on your template.
Best regards,
Angelica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.