Hello All,
I am new to jira, I have used below URI to fetch all projects from Jira
https://hostname/rest/api/2/project
That is working as expected but I need to fetch all board which are in specific project but I did not found any reference to fetch the specific project boards.
When I use below uri
https://hostname/rest/agile/1.0/board
It shows all boards which I am able to view in jira which does not helpful for me.
Kindly share uri or references which can be helpful for me to find out board included in specific project.
Thank you
Pallavi
A project does not belong to a board, nor vice-versa, but it is the board that tells us "I am related to this project", and it does it by looking at what issues the board is selecting for. Quite simply, if a board could draw in an issue from project X, then there is a relationship between that board and the project. A lot of boards will go with the default of having a board filter of "Project = XYZ" but a lot are more complex than that - you can't say a board that says "Project in XYZ, ABC" or "Issue type = risk" could ever belong to a project - by their very definition, they are related to many projects.
So, there's no way to ask "what boards are in this project" because the boards do not belong to projects, and so the REST API has no call to ask that question.
The only way you could answer that question over REST is to get every board, then look at their underlying board filter, and read each one to see if it includes your project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.