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

    • R5.0.3 Sprint 1
    • 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
    • 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
          sdrg
        2. setfunction.xlsx
          11 kB
          sdrg
        3. XPORTER-1036.docx
          12 kB
          sdrg
        4. XPORTER-1036XLSX.xlsx
          11 kB
          sdrg

        Activity

          People

            sdrg sdrg
            sdrg sdrg
            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