JIRA Server 7.4 Database SQL queries examples

Hi All,

I'm searching for the tables what contains the connection between the components and issues at version JIRAServer 7.4. 

(The be honest, any SQL example can help, due I have to create several queries)

I've found a documentation like this: https://confluence.atlassian.com/display/JIRA041/Logging+JIRA+SQL+Queries

which is very helpful but it was 3 major versions ago. The new documentations do not cover this topics and the topology have changed already.

I've only found the DB Schema, but it doesn't help due I do not see any connection points (only the component-project part)

Thanks for any help!

Best: Peter

1 answer

1 accepted

This widget could not be displayed.

Components are tied to issues via the nodeassociation table.  I can't remember the exact definition of the table (and it might vary by version a bit), but there's a source_node_id and sink_node_id field, one is the issue, the other component id, and then there's a sink_node_entity which defines what type of association it is - I think it's still "component" for components

So something like

select * from nodeassociation where sink_node_entity = 'component' and source_node_id = issue_id

should give you components for a specific issue

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,033 views 5 9
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you