Xporter Addon - Sort Epic Iteration

Bernhard Reiter July 2, 2018

Hi,

 

I've tried everything. I want to export JQL searchresult (Epics & Tasks) to Word in iterations with this schema

> Epic A:

   - Task 1

   - Task 2

> Epic B

  - Task 3

 - Task 4

 

The problem I have, is, that it randomly sorts, i. e. it looks like that

> Epic A:

- Task 2   

- Task 1

   

> Epic B

- Task 5  

- Task 2

 ...

 

Currently, my template is this:

 

&{for issues|filter=%{'${IssueTypeName}'.equals('Epic')}}

1       ${Summary} <--Epic Name -->

#{for n=LinksCount|filter=%{‘${Links[n].LinkType}’.equals(‘is Epic of’)}}

#{for issues|sortby=Summary ASC}

      ${Links[n].Summary} <--issue-->

#{end}

&{end}

I've tried all possible variation. What do I wrong?

 

Could anybody please help me?

BR,

Bernhard

2 answers

1 accepted

0 votes
Answer accepted
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2021

Hi @Bernhard Reiter 

The &{for issues} does not allow sorting.

Please use #{for i=JQLIssuesCount|clause=...} ... #{end} where you can write a JQL statement including the order by to sort the information. 

Please check the Xporter Server documentation or the Xporter Cloud documentation (depending on the version you are using).

Any additional questions, please get in touch with Xporter Support; we would gladly assist you.

Thank you.

Kind regards,
Rogério Paiva [Xporter Support Team]

Brigitte Bedard July 21, 2021

mmhm.  The problem is the #{for issues|sortby}.  Not the  &{for issues|sortby=..} because

1)  I use it and it works.

2) The documentation says it works.sortby.png

Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2021

Hi @Bernhard Reiter 

Sorry, my bad, it is possible to use the sortby in the &{for issues} as @Brigitte Bedard pointed out.

In your case, I would suggest using the JQLIssues since it allows more flexibility, however, if you prefer, you may use the sortby in the &{for issues} as well.

Thank you.

Kind regards,
Rogério Paiva [Xporter Support Team]

0 votes
Brigitte Bedard July 19, 2021

you are missing a #{end}, maybe

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events