The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Yong Yang
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!

Yong Yang
Community Champion
March 28, 2024

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events