/
Modify All Pages
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 "
, multiple selections available,
Related content
How to use findReplace parameter to replace content in all pages of a space
How to use findReplace parameter to replace content in all pages of a space
More like this
How to globally search and modify content
How to globally search and modify content
More like this
How to copy a hierarchy of pages to another space and replace text using Confluence CLI
How to copy a hierarchy of pages to another space and replace text using Confluence CLI
More like this
How to automate adding wiki macro to pages
How to automate adding wiki macro to pages
More like this
How to make global changes to comments
How to make global changes to comments
More like this
How to automate adding text to Confluence pages
How to automate adding text to Confluence pages
More like this