Get boards associated with issue using REST API or jira-python

Hello,

Is there any way of retrieving on which boards an issue appears using either the REST API or jira-python? Basically we need to replicate the "View on board" functionality.

We are doing this because we need to retrieve the Sprint info for Sprints that the issue was removed from. For this, we are parsing the history log which only provides the Sprint name and id.

We need to retrieve the other Sprint info (endDate, closedDate, startDate) and for this we need the id of the board that the Sprint belongs to. I could retrieve all the boards from JIRA and for each of them check if they contain my Sprint but this would consume a lot of resources. If i knew only the boards associated with my current issue I could search for the sprint only in those boards.

Is this possible or should I think of a different approach?

If you have other suggestions for this use case, any suggestion is greatly appreaciated. Basically, givenm the issue and sprint id, can I retrieve all the sprint info without searching through all the boards in JIRA?

Thank you!

1 answer

1 accepted

0 vote
Warren Levy Community Champion Jul 26, 2017

Hi Cristina

If I understand your question correctly, you know the sprint ID and want further info about the sprint?

The API call GET /rest/agile/1.0/sprint/{sprintId} will return all info about the sprint, given the sprint ID. See https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/sprint-getSprint for further details.

Thank you, this was exactly what i needed

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,329 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot