I am trying to build a sql query where I can find subtask with associated jira bug. There can be multiple subtasks with different types of subtasks . Can someone please recommend appropriate pointers.
The relationship between subtasks and parents are stored in the issuelink table. This table contains all the issue links, including blockers, duplicates, related issues, etc. For each entry in the issuelink table, you can tell what type of link it represents by looking at the LINKTYPE field.
The LINKTYPE field will contain a numeric ID. That ID is a key of the issuelinktype field. Since you’re interested in subtasks, you’ll be interested in the issuelinktype whose LINKNAME is “jira_subtask_link”.
That should be enough to get you started.
You seem to be asking many questions about making SQL queries against the Jira database. If you haven’t seen the documentation for Jira’s database schema yet, you can find it at
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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!
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