Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-979

Problem with inline iterations

    XporterXMLWordPrintable

Details

    • R5.0.0 Sprint 6
    • UNCOVERED

    Description

      When iterating, if there are linebreaks between the start of the iteratiton, the iterated content, and the end of the iteration (check the example):

      bla bla bla... #{for i=JQLIssuesCount|clause=issuekey = ${ParentIssueKey}}
          ${JQLIssues[i].DueDate}
      #{end} bla bla bla...

      the bla bla bla... on the same line as the start of the iteration, as well as the bla bla bla... on the same line as the end of the iteration are not printed on the generated file.
      However, if all the iteration is made inline (check the example):

      #{for i=JQLIssuesCount|clause=issuekey = ${ParentIssueKey}} bla bla bla... ${dateformat("d MMMM yyyy"):JQLIssues[i].DueDate}#{end} bla bla bla...

      all the bla bla bla... text is displayed properly on the generated document.

      This happens in all type of iterations (links, comments, etc), and I've attached a Simple template to replicate this problem, as well as a sample generated document.

      On more a Complex template with line breaks, this can result on the generated document only displaying an error log.
      Using inline iterations on an Edited Complex template, the generated document is correct.

      Attachments

        1. Xporter Test Template nº 36.docx
          27 kB
        2. XPORTERSUPPORT-643-working.docx
          21 kB
        3. XPORTERSUPPORT-643-simple.docx
          16 kB
        4. XPORTERSUPPORT-643-error.docx
          21 kB
        5. Working-Sample.pdf
          55 kB
        6. Simple-Sample.pdf
          23 kB
        7. New engine stash.txt
          149 kB
        8. Error-Sample.pdf
          35 kB
        9. BIX-54 (9).pdf
          95 kB

        Activity

          People

            sdrg sdrg
            pmmr Pedro Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 days Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 3 hours
                1w 3h