Retrieve the details of the pinned comment associated with the issue from the 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 は除く
要約
This article offers a detailed exploration of the process for retrieving information about pinned comments from a database. It includes the necessary queries to effectively access and utilize this data for various internal auditing purpose.
環境
Jira Data Center
ソリューション
これは PostgreSQL DB で記載および検証されたため、ご利用のデータベースによっては微調整が必要になる場合があります。
There is a dedicated table named "comment_pin" that keeps track of the specific comment IDs which have been pinned within issue comments. By utilizing the query provided below, you can obtain a detailed list of the pinned comments associated with a particular issue key. This list will also include information about the user who pinned each comment, along with the exact timestamp when the comment was pinned.
This query fetches information about all pinned comments that have been added in Jira across all projects.
SELECT (p.pkey||'-'||i.issuenum) AS issuekey,a.actionbody AS "Issue Comment", c.pinned_date AS "Pinned Date",au.lower_user_name AS "User Name"
from jiraissue i
JOIN project p on i.project=p.id
JOIN jiraaction a on a.issueid=i.id
JOIN comment_pin c on c.comment_id=a.id
JOIN app_user au on au.user_key=c.pinned_by;To determine the details of pinned comments added for specific projects:
SELECT (p.pkey||'-'||i.issuenum) AS issuekey,a.actionbody AS "Issue Comment", c.pinned_date AS "Pinned Date",au.lower_user_name AS "User Name"
from jiraissue i
JOIN project p on i.project=p.id
JOIN jiraaction a on a.issueid=i.id
JOIN comment_pin c on c.comment_id=a.id
JOIN app_user au on au.user_key=c.pinned_by
Where p.pkey='<Project Key>';この内容はお役に立ちましたか?