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

Amit Kumar September 16, 2013

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
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2013

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.

0 votes
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2013

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

Amit Kumar September 17, 2013

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

Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2013

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