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

Nested JQLIssuesCount aren't resolving correct mappings

    XporterXMLWordPrintable

Details

    • R5.0.0 Sprint 7
    • UNCOVERED

    Description

      When iterating nested JQLIssuesCount, the resolved mappings are incorrect.
      Placeholders of outer iteration are being replaced by values from inner iteration.

      #{for i= JQLIssuesCount|clause= issuekey in (EPIC-10, EPIC-11, EPIC-12) order by Key} 
      1 - ${JQLIssues[i].Description} - ${wiki:JQLIssues[i].Description}
      #{for j=JQLIssuesCount|clause=issuekey in linkedIssues(${JQLIssues[i].Key}, "is Parent of") order by Key}
      2 - ${JQLIssues[j].Description} - ${wiki:JQLIssues[j].Description}
      #{end}
      #{end}
      
      has this type of output (only first level}:
      
      1 - epic 10 desc +ertsbrtdbrtb+ - this is the epic-13 description 
      1 - epic-12 description _italic_ - epic-12 description italic
      1 - this is the *epic-13* description - this is the epic-13 description 
      

      Also notice wiki behaviour

      1 - ${JQLIssues[i].Description} - ${wiki:JQLIssues[i].Description}
      
      is replaced by
      
      1 - epic 10 desc +ertsbrtdbrtb+ - this is the epic-13 description 
      

      Attachments

        Issue Links

          Activity

            People

              afro Andre Fernandes Rodrigues
              mfda mfda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h