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

3 votes
Rodrigo Rosa Atlassian Team May 19, 2015

Hello Cynthia,

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


Rodrigo Rosa


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

Thanks & regards


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.

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

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.




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
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,784 views 18 22
Read article

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