&{for issues|filter=%{'${IssueTypeName}'.equals('Bug')}} - xporter JIRA issue

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

 

4 answers

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.

Hi @Rishikesh Dugyala

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

Did you recently upgrade the plugin? I would suggest re-installing 3.0.1 and try that.

Mehmet,

Thank you for the quick reply.  I just tried your proposal but still did not work. Any other suggestions ?

 

Thank you

 

Mathieu  

And have you tried JIRA reindexing?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,328 views 2 7
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you