Uploaded image for project: 'Xporter for Jira Cloud'
  1. Xporter for Jira Cloud
  2. XPORTERCLOUD-2330

Sort By Key doesn´t work in a LinksCount loop with multiple confluence links on the Issues

    XporterXMLWordPrintable

Details

    Description

      Description
      If you apply a Sort By Key in a LinksCount loop to export Issues with multiple confluence links, it will not export it.

      How to reproduce

      1. Create an Issue and mention it on two Confluence pages ( the issue only happens with more than 1 Confluence link)
      2. Create a template that iterates with LinksCount and apply SortBy
        Use the following code:
        &{for issues}
        #{for k=LinksCount|sortby=Key}
        Parent: ${Key} Link: ${Links[k].Key}
        #{end}
        &{end}
        

      Actual result/Attachments
      The export will be empty. If the Sort By Key is removed, the export works correctly.

      Expected result
      It should be able to export even with more than 1 Confluence pages.

      Workaround
      At the moment, there´s no workaround unless the Sort By is removed.

      Attachments

        1. image-2025-01-29-11-46-14-429.png
          94 kB
          Mario Peixoto
        2. valid result.png
          17 kB
          Esther Trigo

        Activity

          People

            nikhil.diwan Nikhil Diwan
            mrap Mario Peixoto
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: