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

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
AUG Leaders

Atlassian Community Events