How to list all projects in a specific Project Category

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

To list all projects that are configured under a specific Project Category through a SQL query to the database.

ソリューション

次のクエリを実行します。

select distinct p.pname, p.pkey  from project p join nodeassociation n  on p.id=n.source_node_id  where n.sink_node_entity='ProjectCategory' and n.sink_node_id=(select id from projectcategory where cname='Test')  order by p.pname; 
  • Replace 'Test' with the project category name that you wish to list.

You may run an alternative query to fetch all projects with their Category:

select p.pname, p.pkey, pc.cname from project p left join nodeassociation na on p.id=na.source_node_id and na.sink_node_entity='ProjectCategory' left join projectcategory pc on na.sink_node_id = pc.id group by p.pname, p.pkey, pc.cname;

ℹ️ This is tested using PostgreSQL. Please modify it according to the needs of your database.

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。