1 人のユーザーに関連するデータベース内のすべてのコメントを検索する方法
プラットフォームについて: 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 は除く
要約
背景
It's a common need to visualize the comments a particular user created. Many users have been asking about how to retrieve this data from the database, so here we are presenting the resolution (which was only tested in MySQL databases).
環境
8.0.0 以降の任意のバージョンの Jira Data Center
ソリューション
以下のクエリを実行してください。
SELECT CONCAT(P.pkey,'-',JI.issuenum) as issuekey, JA.actionbody
FROM jiraaction JA
JOIN jiraissue JI ON JA.issueid = JI.id
JOIN project P ON JI.project = P.id
JOIN app_user U ON U.user_key = JA.author
WHERE JA.actiontype = 'comment'
AND U.lower_user_name = 'xxx';⚠️ U.Lower_user_name 変数の値を「xxx」から、対象ユーザーの「ユーザー名」(すべて小文字) に変更してください。
The feature request for getting this information through JQL is being tracked here : JRASERVER-1648 - Allow search on issues I have commented.
この内容はお役に立ちましたか?