XPath Search in Pages
This is an advanced built-in script. Use XPath Search in Pages to search each page's source using the provided XPath expression.
XPath Search in Pages is more powerful than the built-in Confluence search, especially when it comes to identifying hidden structural problems in your content. But that power comes at the cost of speed and efficiency. It is best only to run this built-in script on a single space. It takes about 1.5 seconds to search a space with 2,500 pages.
Run the script
Follow these steps to run the built-in script:
Once you run the script, the Result appears.
Example
Search for pages with images in a certain space
You could use this script if you require a high degree of control over the presentation of your wiki pages, and you want to make sure everything is correct. You could run the following script to see all pages with images:
The script returns the pages with images in the Demonstration Space. Each page appears as a link.
Search for pages with nested macros
You can use two built-in examples to search for all pages with macros nested inside of other macros. For example, this search returns those pages if you use Mosaic: Content Formatting Macros and Templates to nest formatting macros inside of division macros. You can use the generated list to help with your migration.