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
4,247,537
Community Members
 
Community Events
164
Community Groups

Help with SQL Querying the Database Back-end of JIRA

GelbaumD I'm New Here Dec 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

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you