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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 7 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

13 views 0 0
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