Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,453
Community Members
 
Community Events
165
Community Groups

How to write JQL Current sprint + 1 ?

I would like to know how to write JQL current sprint + 1. currently if I write "project = ABC and sprint in futureSprints() "  I will get all future sprints. However, In this case I only want to search current sprint + 1.

thank you

3 answers

1 accepted

1 vote
Answer accepted

Hi @Lykemtheng He ,

 

As per my knowledge, this feature is not available out of the box. 

 

You can achieve this with scrip runner plugin.

nextSprint(board) - will give you issues of the next active sprint .

Please refer below link for more details.

https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-jql-keywords-functions/jql-functions/agile-functions

Hi @Lykemtheng He ,

with the JQL: "project = ABC and sprint in futureSprints() " you don't get the number of future sprints but all the issues present in future sprints. So, the result is a set of issues and not simply a number; then you cannot add 1 to it.
A way to get the number of sprints + 1 is to do it programmatically (eg. using ScriptRunner).

thank you so much.

Hi @Lykemtheng He 

As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.


With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions

 

Finds issues that are planned for the next sprint. Pass a Jira board name or board id as an argument.

issue in nextSprint("ACME board")

issue in nextSprint(10)

 

Check out the documentation for more examples.
I hope this helps!
Maurício

thank you so much

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,728 views 37 47
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you