sql query to get all board id's( srum + kanban) which are associated to particular jira project.

Hi,

Please suggest me sql query to get all board id's( srum + kanban) which are associated to particular jira project.

Using greenhopper 6.1.6.

Regards,

Amit Kumar

2 answers

1 vote

You should rethink your requirement, because boards are not associated with particular jira projects. It could be one project, many projects, or just some issues in many projects.

Hi Amit,

The boards are saved into the table AO_60DB71_RAPIDVIEW, however it's difficult to identify the project as it's liked to a JQL filter and not a project itself.

mysql> select * from AO_60DB71_RAPIDVIEW;
+---------------------+----+--------+-----------------+-----------------+-----------------+-------------------------+-------------------+
| CARD_COLOR_STRATEGY | ID | NAME | OWNER_USER_NAME | SAVED_FILTER_ID | SPRINTS_ENABLED | SPRINT_MARKERS_MIGRATED | SWIMLANE_STRATEGY |
+---------------------+----+--------+-----------------+-----------------+-----------------+-------------------------+-------------------+
| issuetype | 1 | TestII | admin | 10000 | 1 | 1 | parentChild |
+---------------------+----+--------+-----------------+-----------------+-----------------+-------------------------+-------------------+
1 row in set (0.00 sec)

Cheers

Hi Tiago,

Thanks for reply.

I can get the JQL filter associated to particular board by query to table AO_60DB71_RAPIDVIEW right

Now can i get the project name to which this filter is associated ? if yes then how.

Regards,

Amit Kumar

Hi Amit,

You can see the JQL filter by querying the table searchrequest. You'll get something like this:

mysql> select * from searchrequest;
+-------+-------------------+------------+-------------+----------+-----------+-----------+------------------------------------+-----------+-------------------+
| ID | filtername | authorname | DESCRIPTION | username | groupname | projectid | reqcontent | FAV_COUNT | filtername_lower |
+-------+-------------------+------------+-------------+----------+-----------+-----------+------------------------------------+-----------+-------------------+
| 10000 | Filter for TestII | admin | NULL | admin | NULL | NULL | project = TestII ORDER BY Rank ASC | 0 | filter for testii |
+-------+-------------------+------------+-------------+----------+-----------+-----------+------------------------------------+-----------+-------------------+
1 row in set (0.05 sec)

This table include the filter ID (the ID that is refered into the AO_60DB71_RAPIDVIEW) and the JQL itself, in the above example it is project = TestII ORDER BY Rank ASC

I hope it helps.

Cheers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 8 hours ago in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

54 views 0 1
Read article

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