Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

opensprints(-1) function doesn't work

Shaunie-Louise Thomas _ESO_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2024

When creating a reporting dashboard, I want to see tickets that are in this current sprint, so I am using openSprints() which works. 

I also want to see tickets that were also in the previous sprint, so I've used openSprints(-1) and also tried openSprint()-1. Neither of these functions work.

Any advice please?

NOTE: I am currently using dates, but that needs a manual update every 2 weeks.

1 answer

0 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2024

Hello @Shaunie-Louise Thomas _ESO_ 

OOTB Jira has no syntax to get last sprint.

You can reference a sprint directly , like Sprint = SprintName , but this approach requires you to find the name every 2 weeks and execute.

If you have Addons like Scriptrunner, they have a function just for this called previousSprint().

Hope it helps. Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events