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

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

Thanks. I did.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,302 views 2 7
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