add latestReleasedComponentVersions()

Description

Jira has a function latestReleasedVersion() but it doesn't know anything about this plugin, so only one version is the latest. We would like to have latestReleasedComponentVersions() which would return a list of versions, one per component.

Also, unlike the ridiculous ordering of latestReleasedVersion(), please make 'latest' mean 'version with the most recent release date'.

Environment

None

Activity

Show:
Deniz Oğuz
April 6, 2020, 3:36 PM

Hi ,

I don't think this will work as you expected if you are not creating versions with component prefix/suffix.

Component

Version

Component 1

1.0.0

Component 2

2.0.0

Component 3

1.1.0

Component 4

2.0.0

if you use version in latestReleasedComponentVersions(...) it will be equal to version in (1.0.0, 2.0.0, 1.1.0) and it will return issues for Component 3 in version 1.1.0.

Ari Maniatis
April 6, 2020, 3:49 PM

I just assumed that’s what everyone did. Otherwise it would get so confusing to know what version was what. And are you allowed to create multiple versions with the same name in the same project? How could you tell them apart?

What I really want is some JQL like this:

 

Any thoughts about how to do this?

Deniz Oğuz
April 7, 2020, 2:22 PM

Okey. I'm working on this, but I will implement it based on semantic versioning not on release date, is this also acceptable for you?

Deniz Oğuz
April 8, 2020, 9:46 AM

I have implemented two versions:

fixVersion in earliestUnreleasedComponentVersion("LRT", "semantic")

fixVersion in earliestUnreleasedComponentVersion("LRT", "release date")

Ari Maniatis
April 8, 2020, 10:13 AM

Great! I prefer the release date version since that just makes sense to me, but they are both useful.

Thanks so much.

Fixed

Assignee

Deniz Oğuz

Reporter

Ari Maniatis

Labels

None

Source

None

Jira Version

None

Database Type/Version

None

Browser Type/Version

None

Fix versions

Affects versions

Priority

Major
Configure