How can I export page version history details for a given space?

プラットフォームについて: 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 は除く

問題

An admin would like to export a simple page history with modification dates, name of last modifier, comments and the page version number for every page in a space. This export would be an export of the data that is seen when viewing <Confluence-Base-URL>/pages/viewpreviousversions.action?pageId=XXXX.

原因

Currently Confluence native functionality does not offer a way to export this history via the UI.

ソリューション

You can extract the page history details by running the following query on your database. Be sure to fill in the value of SPACE KEY before running the query.

SELECT um.username, c.title, c.version, c.lastmoddate, c.versioncomment, c.contentid FROM content c JOIN user_mapping um ON c.lastmodifier = um.user_key WHERE ( c.prevver IN (SELECT contentid FROM content WHERE prevver IS NULL AND contenttype IN ( 'PAGE', 'BLOGPOST' ) AND content_status = 'current' AND spaceid IN (SELECT spaceid FROM spaces WHERE spacekey = '<SPACE KEY HERE>')) AND c.content_status = 'current' AND c.contenttype IN ( 'PAGE', 'BLOGPOST' ) ) OR ( c.prevver IS NULL AND c.contenttype IN ( 'PAGE', 'BLOGPOST' ) AND c.content_status = 'current' AND c.spaceid IN ((SELECT spaceid FROM spaces WHERE spacekey = '<SPACE KEY HERE>')) ) ORDER BY c.title, c.version DESC

⚠️ Depending on what type of database you are running, you may need to format this query differently.

更新日時: September 25, 2025

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

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