I'm trying to create an ordered list of all versions by querying the Jira Server Java API. I'm using
VersionManager.getAllVersions()
to get a Collection of Version objects. Then, for each Version instance in the Collection I call
Version.getSequence()
to obtain the sequence number.
My problem is that this sequence number is the same regardless of how the issues are sorted in the Project configuration page, nor does it seem to make a difference what start or end dates the Versions have.
Is there a way to get a list of all versions in the correct (any?) order?