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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

179 views 1 17
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