Can we pull a report on Board associated to our projects
Asked by khushboo_puri:

*** ** * ** ***

Is there a way to pull a report on all boards associated to our projects?

If this is isn't possible then can we use JQL to pull it out?


Answers:
author: John Funk
body: Hi Khushboo,

No, you are not really going to be able to do what you are looking for. There is a Location field associated with Jira Software Company-managed project boards, but it only allows a single project to be identified even though the filter used by the board might include multiple projects.

So the projects associated (used?) by the board is all based on the filter used by the board. And the filter may not even identify projects. For example, if the board filter was simply: assignee = khushboo_puri, then potentially ALL projects in your instance are used by the board.

What is it that you are actually needing this for?

comments: author: Hans Polder
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) ,

I was thinking about the 'Location' element as well, but does that exist in Data Center? I believe I've only seen it work on Cloud that way.


author: John Funk
body: Ah, hadn't noticed the Data Center part [@Hans Polder](/t5/user/viewprofilepage/user-id/5506451) - thanks for pointing that out. But that makes it even a little more questioning as to what he is trying to achieve. Maybe we will find out soon. :-)


author: Hans Polder
body: Hi [@khushboo_puri](/t5/user/viewprofilepage/user-id/1188917) ,

Can you give a bit more context to what you're trying to achieve? Do you mean that you're looking for boards that have a certain project in their filter? Or, something else? :)

Generally speaking, JQL is only used to identify a set of Jira issues, not any other entity (like projects, boards, etcetera). My first guess would be that we could figure something out using the Jira REST APIs, however you need to share a bit more context before I could attempt to help you there :)

comments: author: khushboo_puri
body: Hi [@Hans Polder](/t5/user/viewprofilepage/user-id/5506451)

Correct...We need to do a board cleanup, and have not found a way to pull this data.

Can we also know who are admin of those boards as well.

So we need board names and admin of boards that have certain projets(5-6 projects)


author: Hans Polder
body: HI [@khushboo_puri](/t5/user/viewprofilepage/user-id/1188917) ,

I think it will be pretty complex, if even possible. As [@John Funk](/t5/user/viewprofilepage/user-id/5415940) stated in his answer, the only way to identify boards related to projects would be to check the JQL that the board filters are using. And that is not fool proof, since you can also include projects by searching for components that might be used in those projects.

So, it will definitely not be a fool proof solution. Any reason you would want to do this? If the boards need to be deleted, you could also just simply archive or trash the projects, which should stop any boards showing any information from these projects.

You could try a script that uses a heap of API endpoints to try and identify this (by getting the Filters in your instance, finding out if they are attached to a board, filtering them down to (hopefully) only show the relevant boards, then maybe be able to identify those. (more documentation here: [The Jira Data Center REST API (atlassian.com)](https://developer.atlassian.com/server/jira/platform/rest/v10000/api-group-board/#api-agile-1-0-board-get))

I would not spend too much time on this and rather try other approaches to make boards essentially defunct, without actually removing the boards themselves. As mentioned, you can likely achieve that by removing projects themselves, or finding the filters using API, opening them manually and setting their View/Edit permissions to private. Any boards based on those filters will then seize to function since nobody will be able to see the board, at all.


Tags: data-center

jira-data-center