Modify All Pages

Summary

Occasionally, something comes up that requires a change to all pages on the site that contain some specific text. We use the Confluence Command Line Interface (CLI) to automate that. This is based on How to globally search and modify content.

Examples

Incompatible change to TOC macro 

The TOC macro used to allow   as a forced blank in the separator field. We used this to space out the TOC better. All of these had to be changed. Here is what was used. Only pages that had the actual text were actually changed.

--action runFromPageList --space @all --common "--action modifyPage --id @pageId@ --findReplace \"'  |  ':pipe\" --minor "


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.