SQL Query all Subtasks associate to the issue and all Issue in the Epic

cmoifb Moiok June 12, 2015

Hi,

can someone help me please?

I need an SQL Statement to get all Subtasks in issues and all Issues in the Epic.

Thanks

3 answers

0 votes
Alexej Geldt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2015

why not using JIRA components for that? its highly risky to write directly into the database. You may get issues with caches and events. You may leave data inconsistences in the database. Something is wrong with you design. Provide more information why you are about to do that.

0 votes
cmoifb Moiok June 13, 2015

 thanks for your response! I'll try it.

0 votes
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.
June 12, 2015

You really should avoid using SQL for this sort of thing.

But if you insist on doing it the wrong way, look in the issuelink table - it's got source, destination and link type (although you'll need to look the issue ids up in jiraissue and the link types in issuelinktype)

Suggest an answer

Log in or Sign up to answer