Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filtering issues in next Sprint

Tags:

jira

jql

I have the following filter to find issues in current Sprint:

resolution is EMPTY AND assignee = currentUser() AND Sprint in openSprints() ORDER BY priority DESC, created ASC

It works as expected. However, our team creates separate "sprint" (in futureSprints()) for stretch goals and I'm unable to query them without picking up the rest of the backlog. However, this stretch goal sprint is always the next one in our list. Moreover, if current sprint is called "Sprint 20-2016", the stretch goals will be called "Sprint 20-2016 Stretch Goals". This means that I can retrieve the stretch goals by grabbing the name of the current sprint. For example, the following hardcoded solution works:

resolution is EMPTY AND assignee = currentUser() AND Sprint in futureSprints() AND Sprint = "Sprint 20" ORDER BY priority DESC, created ASC

Problem is that instead of "Sprint 20" being hardcoded I want something like Sprint = [name of first entry from] openSprints() but don't know how to express this in JQL. Alternatively, since stretch goals are always in the next sprint, something like Sprint in [first entry in] openSprints() + 1 would work as well.

like image 347
Alexander Tsepkov Avatar asked Mar 10 '16 20:03

Alexander Tsepkov


People also ask

What is issues completed outside of this sprint?

Issue Completed Outside of Sprint : Issues that were completed (i.e. transitioned into one of the statuses associated with the column that is the farthest on the right of the board) but did not have the Sprint field associated with that specific sprint and were later assigned to that sprint (this counts even if they ...

How do I add active issues to sprint?

From the Backlog screen, right click on the issue you want to add. A popup menu will provide you with a list of choices. Included in that list will be each defined sprint and "Top of Backlog" and "Bottom of backlog". Simply select the sprint to which you want to add the issue.

How do I view the next sprint in Jira?

Use the Backlog of a board to view planned sprints. If you want to view a sprint in progress, use the Active sprints of a board instead. You can also use JQL in the issue search (Issues > Search for issues > Advanced) to search for a sprint's issues.


1 Answers

Adaptavist Scriptrunner adds a plethora of extra JQL functions.

One of which is nextSprint

nextSprint("Board Name")

I use it to generate statistics for our next planned 3 week sprint as well as feed a dashboard for users that complete their work early and are looking to pull issues from the next sprint into the current. Generally we pull by stack order, but with as much dynamic work as we have a dashboard gives us a bit more flexibility that a scrum board doesn't offer.

like image 155
Aiwa Avatar answered Oct 01 '22 23:10

Aiwa