Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Help with SQL Querying the Database Back-end of JIRA

GelbaumD December 22, 2021
  1. We are reviewing the back-end database and are having problems associating the parent/child relationships through the JIRA projects. When we are reviewing the UI we see numerous issues under this initiative but they are not showing up through the SQL query. Please see example below we have Initiative Maintenance Initiatives/ MINT-5 and under we see numerous issues. When we run the following query all the issues in the UI results are not returned. We are trying to understand how to view all the parent/child relationships and do not understand what query to use to see these results.

 

Query: select * from JIRASchema.issuelink where SOURCE = 195170 (19 rows)

(Diagram below)UI: 72 rows

1 comment

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 22, 2021

Welcome to the Community!

I strongly recommend that you stop reading the database.  It really is not intended for reporting, and things like issue links and hierarchies are utterly horrid to extract.  If you're using Advanced Roadmaps for example, there are at least four different types of link-like relationships, all done in different tables.

I'd strongly suggest you take a step back and use the UI or REST API for your queries, or a dedicated Jira reporting tool.  Don't try to roll your own, you will almost certainly get it wrong, and if you don't, you'll find you've spent months or years building something that you'll need to re-test and rebuild with new releases.

Like LarryBrock likes this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events