Hello,
the Javascript expression
%{('${Status}'=='Resolved') ? '\n [${CustomerText}]' : ''}
works fine within a Word document. ${CustomerText}
is the content of a text field. However, if the text
contains an aphostrophe (e.g. '), nothing is printed. If I
change the text by replacing ' with \' then it is printed
again. The point is: This way is not practicable in our
case. Thus, what can be done in order to have text printed
with aphostrophes?
Regards,
Christian
Hi Christian
You also should use conditional statements instead of Javascript conditions.
http://jiraxporter.xpand-it.com/display/JIRAXPORTER/Working+with+Advanced+Templates#WorkingwithAdvancedTemplates-ConditionalBlocks
Ex:
#{if (%{'${escape:Description}'.length > 0})}
This issue has a description. The text is below:
${Description}
#{end}
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.