Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,230
Community Members
 
Community Events
165
Community Groups

Using Conditional Block in Xporter

I am using Xporter to export my reports in Jira. I have tried to use Xporter conditional block but it does not seem to be working. When I download the report and open it, it keeps showing the script I wrote for the conditional block. Here is my script:

#{if (%{'${Risk}'.equals('High')${Risk})}

#{end}

If I write it in code block for Word using Ctrl+F9, it won't print anything in the respected field. I am using it inside a loop like this:

&{for issues}

#{if (%{'${Risk}'.equals('High')${Risk})}

#{end}

&end

is there anything I am doing wrong here? Please help me fix this issue. Thanks

1 answer

Hi @Jamshaid 

You have an error in the code, you have the custom field Risk written twice inside the Javascript code, and this does not make the evaluation of the condition.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

389 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you