I would like to create a query that returns issues based on a version type field that is equivalent to the next unreleased version on a particular number branch sequence.

For example:

fixVersion IN ('1.7.1') 

would give me all of the issues where the fixVersion is set as 1.7.1

What I would like to do is be able to create a query that selects the next unreleased version in the 1.7 branch

For example:

fixVersion IN (NextUnreleasedVersion)

In addition I would like to get a version that is the last released version in a similar manner.

Is it possible to do this with the standard Jira query mechanism.

有帮助吗?

解决方案 2

Not possible with standard JQL. You could try a custom JQL function with Script Runner

其他提示

You could use:

fixVersion in earliestUnreleasedVersionByReleaseDate([projectkey])

See Jira documentation

If you're using sprints (greenhopper), I found there's an openSprints() function that helps you get what you want:

assignee = currentUser() AND resolution = Unresolved AND sprint in openSprints() 
   ORDER BY updatedDate DESC

Doesn't help with the fixVersion unfortunately. In that case, we've usually had a couple backlog versions to just exclude, and I've usually used something like this:

assignee = currentUser() AND resolution = Unresolved AND 
  fixVersion not in ("Feature Backlog", "Bug Backlog") ORDER BY updatedDate DESC
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top