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

JIRA Release Version Parameter is truncating list of Jira versions

      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

          [JENKINS-32276] JIRA Release Version Parameter is truncating list of Jira versions

          I just tested and this is actually fixed on master branch. If you are in a hurry, you can build directly from there.
          I will try to release next version this week.

          Radek Antoniuk added a comment - I just tested and this is actually fixed on master branch. If you are in a hurry, you can build directly from there. I will try to release next version this week.

          Will be available in v.2.2.

          Radek Antoniuk added a comment - Will be available in v.2.2.

          Code changed in jenkins
          User: Radek Antoniuk
          Path:
          src/test/java/hudson/plugins/jira/versionparameter/VersionComparatorTest.groovy
          http://jenkins-ci.org/commit/jira-plugin/b33b3e7f849cef1113333d2fedbf135bbde88b73
          Log:
          JENKINS-32276 - Fix tests to actually run

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radek Antoniuk Path: src/test/java/hudson/plugins/jira/versionparameter/VersionComparatorTest.groovy http://jenkins-ci.org/commit/jira-plugin/b33b3e7f849cef1113333d2fedbf135bbde88b73 Log: JENKINS-32276 - Fix tests to actually run

          ありがとうございました

          Yevgeny Sergeyev added a comment - ありがとうございました

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

              Created:
              Updated:
              Resolved: