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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
Read article

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