What is the rest api to determine the sprint duration for a project/board?

I want to know the sprint duration for a project/board via rest api. How can I identify the default sprint duration?

1 answer

0 vote

Hi Meenal,

The REST API in Jira does have a method you can use to find out the start and end times for a sprint.  With this information you can then figure out the duration.  But the specific duration value is not something that can can be directly found in REST to the best of my knowledge.  The same goes for if you are looking to find the default duration value via rest.

But if you are looking for the start/stop times, please see the Jira Software Rest API reference: agile/1.0/sprint endpoint.  This just explains what REST endpoint you can call to find this information. 

That specific endpoint requires you to know the ID number of the sprint itself.   You can first find all the boards and their IDs in the endpoint agile/1.0/board.  From there you can use the ID of the board to query the endpoint agile/1.0/board/{boardId}/sprint.  That way you can enter the board ID in order to find out the sprint ID.   

I hope this helps.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,387 views 15 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you