-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 1.643, Jira Plugin v2.1
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)
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