Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×The following function should be able to help you to
previousSprint(board name)
Shows issues that are members of the last completed sprint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is returned by
issueFunction in previousSprint(<your board name here>)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know that it's now working. Please upvote/accept the answer if it works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this but did not work for me. do I need to have those functions enabled in my Jira install? we use JIra server version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when I write my query, I get this reponse:
Unable to find JQL function 'previousSprint()'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same for me. I guess we will need to use some jira Ad-Ons to have these functions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when I write my query, I get this reponse:
Unable to find JQL function 'previousSprint()'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.