JQL for last close Sprint

Please let me know do we have any function to retrieve the values from previously closed Sprint using the script runner ?

1 answer

1 accepted

1 vote

The following function should be able to help you to

previousSprint

previousSprint(board name)

Shows issues that are members of the last completed sprint.

Thanks Tarun

When i use below query it returns the value

 issueFunction in aggregateExpression("Total Estimate for all Issues", "originalEstimate.sum()", "Remaining work", "remainingEstimate.sum()")  and sprint in (126)

 

But not for this one. What did i miss in my JQL

 issueFunction in aggregateExpression("Total Estimate for all Issues", "originalEstimate.sum()", "Remaining work", "remainingEstimate.sum()")  and issueFunction in (previousSprint("Olympians Board for Story (AA + BB+ CC+DD)"))

 

I dont want to update the query every Sprint

Tarun Sapra Community Champion Nov 07, 2017

What is returned by 

issueFunction in previousSprint(<your board name here>)

When i run this query 

 

issueFunction in (previousSprint("Olympians Board for Story (AA + BB+ CC+DD)")

 

I get no issues found. Is anything wrong in it ?

Are you entering the correct board name as you have to just enter the board name and whats "AA , BB, CC, DD" . What kind of naming is this?

Also please validate in the board that you have an closed sprint in the board as the "previousSprint" returns issues from last closed sprint.

I have updated the board name  with below 

issueFunction in (previousSprint("Olympians_Board_for_Story"))

Still it shows no issues found. I have reports and velocity chart being populated for this board

If the board name is incorrect it throws an error message. It seems to be an issue with script runner 

I found the issue in my jql. 

 

When i exclude "(" in front of the previous sprint it worked. Thanks Tarun

 

issueFunction in previousSprint("Olympians_Board_for_Story")

Good to know that it's now working. Please upvote/accept the answer if it works for you.

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 ...

3,316 views 14 20
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