Extracting Jira Reports for Specific Values Added to an Issue Field 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 provides a comprehensive overview of how to retrieve information regarding the frequency of specific values added to a field within an issue. This information can be easily obtained from the issue history table in a database. It includes the necessary queries to effectively access and utilize this data for various internal auditing purpose

ソリューション

これは PostgreSQL DB で記載および検証されたため、ご利用のデータベースによっては微調整が必要になる場合があります。

This query aims to gather detailed information about specific field values that have been modified or updated within an issue. Alongside these field values, it will also display the associated project name, Issue Key, the users who have added the values, and other relevant details.

SELECT p.pname, (p.pkey||'-'|| i.issuenum) AS issuekey , cg.ID, cg.issueid, au.lower_user_name, cg.AUTHOR, cg.CREATED, ci.FIELDTYPE, ci.FIELD, ci.OLDVALUE, ci.OLDSTRING, ci.NEWVALUE, ci.NEWSTRING , it.pname FROM changegroup cg inner join jiraissue i on cg.issueid = i.id inner join project p on i.project = p.id inner join changeitem ci on ci.groupid = cg.id inner join app_user au on cg.author = au.user_key inner join issuetype it on it.id=i.issuetype WHERE ci.FIELD like '%<field Name>%' and ci.oldstring like '%<field value>%' or ci.newstring like '%<field value>%' ;

The query result outlines the specific values added to the Version field.

更新日時: September 26, 2025

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

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