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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

🍂📹 Apptoberfest demo contest roundup: vote for your favorite demos!

Hi Community! The submissions are in (and listed below) for the 🍻🍂Apptoberfest🍂🍻 Demo Competition and it’s time for you to place your votes for the best: Analytics & reporting app demo ...

101 views 2 11
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