Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get all sprints Edited

Hello,

Has any one had success with GET /rest/agile/1.0/board/{boardId}/sprint ? I have had success with board/{board_id}/sprint?state=active and board/{board_id}/sprint?state=closed. Instead of making 2 calls, I would like make one call to get all the sprints of a board.

Appreciate any help.

1 answer

Hi @aasgar I had success even with your first query. But also states values can be separated with comma so you can use more of them:

 board/{board_id}/sprint?state=active,closed

Thanks. Were you successful with the Get All sprints from a board for a given board id on Jira cloud? I seem to get an error ( 400- Bad request) when I use GET /rest/agile/1.0/board/{boardId}/sprint.

Hi @aasgar following GETs are working for me:

  • /rest/agile/1.0/board/2/sprint?state=active,closed
  • /rest/agile/1.0/board/2/sprint

where 2 is ID of the board.

Hi Martin,

Like I mentioned before 

  • /rest/agile/1.0/board/2/sprint?state=active,closed works for me. But /rest/agile/1.0/board/2/sprint does not work. 

Hi @aasgar could you share your exact requests? I mean the whole queries?

Hi Martin,

From PowerBI, I use the Web data source and give the url

  • https://<jira url>/rest/agile/1.0/board/<board_id>/sprint?state=active,closed

I get all the active and closed sprints for that board.

However, if I use the Web data source and give this url

  • https://<jira url>/rest/agile/1.0/board/<board_id>/sprint , I get an error. I expected this to return all sprints from the board that I have specified.

hi @aasgar , what if you try the "query" only in your browser? Does it work? There might be some problem on PowerBI (it can add something to the request and you don't know it).

Hi Martin,

The query doesn't work in the browser either. But I have worked around it by using 

  • https://<jira url>/rest/agile/1.0/board/<board_id>/sprint?state=active,closed . 

@aasgar ok, we can probably live with it.. but it is weird that it is working for me and not working for you:). Can you accept the answer pls? Someone can use this workaround in the future....

Yes, it is indeed strange that it works for you. Anyway, the workaround is great as well as it works. The workaround is not an answer though, but we could close this thread. Thanks Martin.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you