Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32276

JIRA Release Version Parameter is truncating list of Jira versions

XMLWordPrintable

      Hello.
      [JIRA Release Version Parameter] is truncating list of Jira versions.
      We have more than 170 versions in Jira, but this field displaying only few of them.

      See the following code snippet :

      // populating versions
      Collection<Version> versions = new ArrayList<Version>();
      versions.add(new Version(null, null, "Q3- 2013", null, false, false, null));
      versions.add(new Version(null, null, "11-01-2014-Major", null, false, false, null));
      versions.add(new Version(null, null, "12-02-2015-Minor", null, false, false, null));

      // applying comparator
      SortedSet<Version> orderedVersions = new TreeSet<Version>(new VersionComparator());
      orderedVersions.addAll(versions);

      // printing
      for (final Version orderedVersion : orderedVersions)

      { System.out.println(orderedVersion.getName()); }

      If you run this code, you'll get only 1 of these 3 versions.
      I think it's because of the space in "Q3- 2013" version.

      Thank you

            Unassigned Unassigned
            yevgenys Yevgeny Sergeyev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: