Hello All,
I have a simple problem, I am trying to extract to a word template some issue using Xporter plugin
Here the code I have:
&{for issues|filter=%{'${IssueTypeName}'.equals('Bug')}}
Issue Key: ${Key}
Issue Summary: ${Summary}
&{end}
Export look to go well, when I open the document the document is blank.
I tried multiple way -
- by using the bulk export - with only issue type Bug
- by using the bulk export - all different kind of issue type with Bug
I can get to work the single issue export using Clause statement instead of filter
This is an exact copy/paste from the support documentation on http://jiraxporter.xpand-it.com/display/JIRAXPORTER/Working+with+Advanced+Templates
I have JIRA 6.3.3 installed and Xporter version 3.0.2.
Do any one has any idea ?
Thank you
Mathieu
Hi Mathieu,
Try this:
#{if (%{'${IssueTypeName}'.equals('Bug')})}
Issue Key: ${Key}
Issue Summary: ${Summary}
#{end}
Best,
RMRodrigues
Hello @Rui Rodrigues
How we can have mutliple values like how we can use OR functionality if Issue Type equals Bug or Task. Please let me know if you can able to define the script.
Thanks,
Rishikesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the code between %{...} is javascript. So, you can add multiple conditions.
Sample:
#{if (%{'${IssueTypeName}'.equals('Bug') or '${IssueTypeName}'.equals('Story') or '${IssueTypeName}'.equals('Task')})}
Issue Key: ${Key}
Issue Summary: ${Summary}
#{end}
Cheers,
Rui Rodrigues
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.
Hi,
since the queries are in javascript, one needs to change the "or" with || and the "and" with && giving the following:
#{if (%{'${IssueTypeName}'.equals('Bug') || '${IssueTypeName}'.equals('Story') || '${IssueTypeName}'.equals('Task')})}
Issue Key: ${Key}
Issue Summary: ${Summary}
#{end}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And have you tried JIRA reindexing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mehmet,
Thank you for the quick reply. I just tried your proposal but still did not work. Any other suggestions ?
Thank you
Mathieu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you recently upgrade the plugin? I would suggest re-installing 3.0.1 and try that.
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.