Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Component Info in Jirraissue Table

Amir Shojaei
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2023

Hello,

I am using SQL query to fetch data from `jiraissue` table and the "Component" column is returned "NULL" for all rows. I appreciate any advice on how we can retrieve the component info from jirraissue table. Thank you. 

 

Best regards,

Amir

1 answer

1 accepted

1 vote
Answer accepted
Valerie Knapp
Community Champion
September 14, 2023

Hi @Amir Shojaei , welcome to the community and thanks for your question.

I found this other question that has the code for how to search for Components in SQL, have you tried this already? 

sql query to retrieve all component in jira databa... (atlassian.com)

 

SELECT count(ji.id), c.cname FROM jiraissue ji 
INNER JOIN nodeassociation na ON ji.id = na.source_node_id
INNER JOIN component c ON na.sink_node_id = c.id
GROUP BY c.cname
 

 

This link also has a link to another question with a similar discussion / some other suggestions - Solved: How to query JIRA db by component in SQL? (atlassian.com)

I hope this helps you.

Cheers

Amir Shojaei
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2023

Thank you very much!

Like Valerie Knapp likes this
Valerie Knapp
Community Champion
September 18, 2023

You're very welcome! Good luck :)

Suggest an answer

Log in or Sign up to answer