Forums

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

Find future sprint via script runner

Sebastian Krzewiński
Community Champion
March 28, 2024

Hi!

 

I'm looking for a solution to find future sprint from certain board.

I'm able to find all sprints from board (closed/active/future) by:

// Get all sprints
def sprints = get("/rest/agile/1.0/board/3491/sprint")
.asObject(Map)
.body

return sprints

but I don't know how to get future sprint only.

Can you help me? 

1 answer

1 accepted

1 vote
Answer accepted
YY Brother
Community Champion
March 28, 2024 edited

Hi @Sebastian Krzewiński 

Please try it:

/rest/agile/1.0/board/3491/sprint?state=future

And REST API doc for more detail: 

https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-get

image.png

Thanks,

YY哥

Sebastian Krzewiński
Community Champion
March 28, 2024

Thanks! That was that what I need!

YY Brother
Community Champion
March 28, 2024

You're welcome. I got this knowledge when I deveoped Sprint Reviewer app.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events