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

Regards,

Rodrigo Rosa

Hi,

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

Thanks & regards

Naidu.l

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.

Regards,

 Maud

 

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

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,942 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot