How to find pages with the most child pages
プラットフォームについて: 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 は除く
要約
Some actions, such as moving a page, can take a long time when the page has a very large number of child pages. For this reason it can be useful to identify pages with a very large number of children and, if necessary, break up the page hierarchy into smaller page trees.
ソリューション
The following query will return details of the 50 pages with the most direct child pages.
select contentid, title, count from content join (select parentid, count(*) from content
where contenttype = 'PAGE' and content_status = 'current'
group by parentid
order by count desc limit 50)
top on top.parentid = content.contentid;This query has been tested with PostgreSQL, and may need to be adapted for your database.
この内容はお役に立ちましたか?