How to get the list of knowledge spaces linked to each JSM project from the Jira database
プラットフォームについて: 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 は除く
要約
The purpose of this article is to provide a way to get the list all the knowledge base spaces that are linked to JSM (Jira Service Management) projects, by querying the Jira Data base.
環境
Any Jira Service Management (JSM) on Server/Data Center from the version 4.0.0
ソリューション
ℹ️ Note that the SQL query below was written and tested on a PostgreSQL Database. For different types of databases, the query might need to be slightly modified (by removing all the double quote characters, for example):
SELECT p.pkey AS "Project Key",
p.pkey AS "Project Name",
vp."PROJECT_ID" AS "Project ID",
vp."NAME" AS "Portal Name",
kb."SPACE_NAME" AS "KB Space",
kb."APPLINK_NAME" AS "Application Link Name"
FROM "AO_54307E_CONFLUENCEKB" kb
JOIN "AO_54307E_SERVICEDESK" sd ON sd."ID" = kb."SERVICE_DESK_ID"
JOIN "AO_54307E_VIEWPORT" vp ON sd."PROJECT_ID" = vp."PROJECT_ID"
JOIN project p ON p.id = vp."PROJECT_ID";例
Here is an example of output from this query executed in an environment that has 2 JSM projects, with each project being linked to one KB (knowledge base) space:
|Project Key|Project Name|Project ID|Portal Name |KB Space |Application Link Name |
|-----------|------------|----------|---------------|------------|----------------------------------------------|
|ITSD |ITSD |10000 |IT Service Desk|New KB space|Confluence Application used for Knowledge Base|
|SDBASIC |SDBASIC |10100 |SDBASIC |For SD Basic|Confluence Application used for Knowledge Base|この内容はお役に立ちましたか?