The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

SQL query that returns a list of issues for a caterogie

Anthony Novo
March 11, 2014

Hi,

I am looking for a query that returns all issues present from all projects in a category.

Thanks

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Fabio Racobaldo _Catworkx_
Community Champion
November 7, 2022

Hi @Anthony Novo ,

here your SQL query :

SELECT ji.*
FROM nodeassociation na
INNER JOIN projectcategory pc ON pc.ID=na.SINK_NODE_ID
INNER JOIN project p ON (na.SOURCE_NODE_ID=p.ID)
INNER JOIN jiraissue ji ON (ji.PROJECT=p.ID)
WHERE na.ASSOCIATION_TYPE='ProjectCategory' AND pc.cname='PROJECT_CATEGORY_NAME_HERE';

Hope this helps,

Fabio

Dan Breyen
Community Champion
April 6, 2023

@Anthony Novo did this resolve your issue?

0 votes
Barry Kosovski
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!
March 3, 2026

As a new year begins, traders https://westafricatradehub.com/crypto/when-is-the-next-bull-run-in-crypto/ are asking when the next major crypto bull run will arrive. Based on prior post-halving cycles and today’s evolving market structure — including growing ETF flows, clearer regulation, and emerging themes like AI and tokenized real-world assets — 2026 appears a plausible window for a strong upswing in Bitcoin, Ethereum, and select altcoins. If liquidity improves and institutional demand continues to absorb supply, the foundation for a meaningful advance could be firmly set.

0 votes
Henning Tietgens
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 Champions.
March 11, 2014

In SQL the project category association is saved in the nodeassociation table (ASSOCIATION_TYPE='ProjectCategory').

0 votes
Henning Tietgens
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 Champions.
March 11, 2014

In JQL (not SQL) you can write "category=MyCat" to select all issues in projects with category MyCat.

Anthony Novo
March 11, 2014

Yes thanks, but i'am very interesting to the sql :D

I want the same display of the JQL but directly in the database with SQL.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events