Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How To Filter In an R4J Export for a Specific Label?

E B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2022 edited

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”]]

1 answer

0 votes
Angelica Salazar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events