How to identify when a watcher was added to a Jira Data Center issue
プラットフォームについて: 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 は除く
要約
このページの内容はサポート対象外のプラットフォームに関連しています。したがって、アトラシアン サポートではこのページの記載内容のサポートの提供は保証されません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。
In Jira Data Center, you can find any watcher who has been added to a Jira issue. You can search the issue's history to find the date of that change. The following solution helps you to find all watchers of a specific issue using the database.
ソリューション
To use the following database query, you will need to replace
<PROJECT_KEY> with the project key
<ISSUE_NUM> with the issue number
SELECT
concat(project.pkey,'-',jiraissue.issuenum) AS pkey_issuenum, app_user.user_key, app_user.lower_user_name, userassociation.created
FROM
userassociation
JOIN
app_user
ON
userassociation.source_name = app_user.user_key
JOIN
jiraissue
ON
jiraissue.ID = userassociation.SINK_NODE_ID
JOIN
project
ON
project.id = jiraissue.PROJECT
WHERE
jiraissue.id = userassociation.sink_node_id AND userassociation.association_type='WatchIssue' AND userassociation.sink_node_entity ='Issue'
AND
jiraissue.id = (select id from jiraissue
where project in (select id from project where pkey = '<PROJECT_KEY>')
and issuenum = <ISSUE_NUM>)
ORDER BY app_user.user_key ASC;この内容はお役に立ちましたか?