Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Help with SQL Querying the Database Back-end of JIRA

  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

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


Log in or Sign up to comment