How do I get only the next to release issues?


I am trying to figure out how fixVersion = earliestUnreleasedVersion() works. 

In my case, we have a couple of projects that have Fix Version 2.08. (that would be next week, week 8 in this year) If I use the mentioned JQL, I only get 2 out of 4 projects that have this fixversion and I don't understand why.

The weird thing is, if I search for fixVersion = 2.08 I DO get all 4 projects. 

If I use  fixVersion > latestReleasedVersion() then I get 2.08 and the already planned ones in 2.09 and 2.10. 

I don't seem to get something like fixVersion = earliestUnreleasedVersion() AND fixVersion > latestReleasedVersion() so my question here is: how do I get only the issues in the next release, without changing the fixversion every week?

Thank you so much for your help!

1 answer

The earliestUnreleasedVersion searches all versions that are not released for each project and then again for each project it picks up the version with the lowest sequence number - meaning that it depends on the order of the versions, so if in 2.08 is above 2.09 it will pick 2.09 instead 2.08, so that might be your problem.

You can do a test by looking at the results of a query like project=Project1 and fixVersion=earliestUnreleasedVersion() for each project and check which of the project does not behave as expected, then double-check why

You are right about that he searches each project and then again, because it's grouped by project. 

What do you mean by double-click?

Still don't know how to only search for only the next fixversion....

Our releases are every week. And they have a release date (which is 7 days after the last one). Maybe I can put something like "and release date <= 7d" in my JQL about that? 

But I can't do that now, my JIRA doesn't recognise that field....

Did you check if the version order is correct for all the projects you expect to get issues from ?

Can you post a screenshot of the versions page for the projects that you're not getting the expected results ?


Hi Boris,

Sorry for the late reply. Attached is my info about the checks etc. 

I still don't see the problem sad


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Jira

Updates to give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

635 views 1 15
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