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

Problem with iteration filter

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • None
    • None
    • R1.0.1 Sprint 1
    • UNCOVERED

    Description

      When trying to export the following mapping, the export timesout and no file is generated (either single and bulk)

      #{for links|filter=%{!'${Links[n].IssueTypeName}'.equals('Story')}}
      ${Links[n].Key}
      ${Links[n].AssigneeUserDisplayName}
      #{end}
      
      or 
      
      #{for links|filter=%{'${Links[n].IssueTypeName}'.equals('Story') || '${Links[n].IssueTypeName}'.equals('Bug')}}
      ${Links[n].Key}
      ${Links[n].AssigneeUserDisplayName}
      #{end}
      
      or
      
      #{for links|filter=%{'${Links[n].Description}'.indexOf('aipo') > -1}}
      ${Links[n].Key}
      ${Links[n].AssigneeUserDisplayName}
      #{end}
      
      or 
      
      #{for links|filter=%{!('${Links[n].Description}'.indexOf('aipo') > -1)}}
      ${Links[n].Key}
      ${Links[n].AssigneeUserDisplayName}
      #{end}
      
      or
      
      #{for links|filter=%{'${Links[n].IssueTypeName}'.equals('Bug') && '${Links[n].Priority}'.equals('Major')}}
      ${Links[n].Key}
      ${Links[n].LinkType}
      #{end}
      

      This also happens when iterating comments, subtasks, etc, with filters
      However, if I iterate using the variable and count, it works properly

      working example
      
      #{for j=LinksCount|filter=%{!'${Links[j].IssueTypeName}'.equals('Story')}}
      ${Links[j].Key}
      ${Links[j].AssigneeUserDisplayName}
      #{end}
      

      Attachments

        1. error.xlsx
          8 kB
          mfda
        2. iterationIndex.xlsx
          9 kB
          mfda

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 2 days, 30 minutes Remaining Estimate - 7 hours, 30 minutes
                  7h 30m
                  Logged:
                  Time Spent - 2 days, 30 minutes Remaining Estimate - 7 hours, 30 minutes
                  2d 30m