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

The Counts inside an iteration aren't being properly printed when the value is 0

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • None
    • None
    • R0.1.0 Sprint 11
    • UNCOVERED

    Description

      In cases like the following:

      #{for j=SubtasksCount}
      ${Subtasks[j].ComponentsCount}
      ${Subtasks[j].LinksCount}
      #{end}
      

      the ComponentsCount and LinksCount, when there's none, instead of returning 0 are returning empty. This becomes a problem using conditional iterations like this:

      #{if (%{'${Subtasks[j].ComponentsCount}'.equals('0')})}
      There are no components
      #{end}
      

      However, if the counts value is different from 0, the proper value is returned

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            pmmr Pedro Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 2 hours, 20 minutes
                2h 20m