How can I query using JQL for the latest release version of a project?

Is it possible to query for the latest release version of a particular project in JQL?  In SQL you would use MAX(release version), but I'm thinking there isn't an equivalent in SQL.

5 answers

This widget could not be displayed.

Hello Cynthia,

You could try something like "fixVersion = latestReleasedVersion(TEST)" to find the last released version for the TEST project, for example. smile

Regards,

Rodrigo Rosa

Hi,

can we print the Fix version value by using a command or some thing else ?

Thanks & regards

Naidu.l

This widget could not be displayed.

Or you might want to create your own JQL query with SQL for JIRA as it supports the full JIRA issue and project database model, so it is possible (and easy) to write a SQL query to get the latest release of any project and then convert it into a JIRA JQL query.

This widget could not be displayed.

That was a nice idea until I checked with our PM.  He said they use fixVersion and ReleaseVersion as the same.

This widget could not be displayed.

Hello Cynthia,

perhaps there is a misunderstanding here? fixVersion is the field of an issue.

Some issues may have "V2.3", earlier ones may have "V2.2" in that field.

 latestReleaseVersion(<projectname>) is the version name of the project which has been released latest - so in my case most probably this value is "V2.3".

So many issues in that project should have that latestReleaseVersion (i.e. the name of that version, here "V2.3") as the content of the fixVersion field.

Regards,

 Maud

 

This widget could not be displayed.

Tis messy here...I don't dispute your version definitions in the least.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

266 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you