You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
This might a really trivial question but I see no answer in the XPorter Documentation.
I use XPorter to export Values from linked issues like in this example:
#{for i = LinksCount|sortby=Key}
#{if (%{'${Links[i].Semester[10413]}'.equals('1')})}
${Links[i].Key}
#{end}
#{end}
The "equals" condition is very helpful but for some problems I need like the "unequals" condition. I didnt figured out how to do that.
e.g. in that exaple:
#{for i = LinksCount|sortby=Key}
#{if (%{'${Links[i].Semester[10413]}'.equals('2')})}
#{if (%{'${Links[i].Prüfungsleistung[10411]}'.unequals('PA / Ref und Präsentation')})}
#{end}
#{end}
#{end}
I tried unequals and if not. Both didnt work, so I need your help with this.
Best thanks in advance!
Hi @dD
Xporter uses Javascript when you have %{........} in the code.
So, all you need to use is the Javascript not operator ! (exclamation point) before the condition you want the evaluate the falsehood of the result, like this:
#{if (%{!'${Links[i].Prüfungsleistung[10411]}'.equals('PA / Ref und Präsentation')})}
What this condition evaluates is if the result is not equal to 'PA / Ref und Präsentation', since the operation unequal does not exist in Javascript.
Thank you.
Kind regards,
Rogerio Paiva [Xporter Support Team]
Best thanks to you @Rogério Paiva - Xray Xporter !!!
This works perfect and your answer came just in the right time. Also I learned a little about javascript.
Thank you so much and have a nice evening.
BEST
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.