Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Dec 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