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

Inline iteration with set function doesn't work properly on Word and on an Excel

    XporterXMLWordPrintable

    Details

    • Sprint:
      R5.0.3 Sprint 1
    • Automated Test Case:
      Hide
      Automation V7 test case:
      Word: testTemplate46
      Excel: testSuite39SetInline

      Automation V6 test case:
      Word: testTemplate46
      Excel: testSuite39SetInline
      Show
      Automation V7 test case: Word: testTemplate46 Excel: testSuite39SetInline Automation V6 test case: Word: testTemplate46 Excel: testSuite39SetInline
    • Requirement Status:

      5.0.2 - UNCOVERED

      5.0.2-j6 - UNCOVERED

      Description

      I have attached two templates(word and excel)
      This code work well on both:

      ${set(count,0)} #{for n=JQLIssuesCount|clause=project = BIX AND issuetype = Story AND status in ("Open")}
      #{if (%{'${JQLIssues[n].NumberA}'.length > 0})}
      ${set(count,%{${count}+${JQLIssues[n].NumberA}})} 
      #{end}
      #{end}
      %{${count}.toFixed(2)}
      

      This code doesn't work properly on both(Inline):

      #{for n=JQLIssuesCount|clause=project = BIX AND issuetype = Story AND status in ("Open")} #{if (%{'${JQLIssues[n].NumberA}'.length > 0})} ${set(count,%{${count} + ${JQLIssues[n].NumberA}})} #{end} #{end}
      %{${count}.toFixed(2)}
      

        Attachments

        1. aaaaaaaaaaa.docx
          12 kB
        2. setfunction.xlsx
          11 kB
        3. XPORTER-1036.docx
          12 kB
        4. XPORTER-1036XLSX.xlsx
          11 kB

          Activity

            People

            Assignee:
            sdrg Severino Goios
            Reporter:
            sdrg Severino Goios
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 45 minutes
                4h 45m