Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleUpdating storage format

Always be careful updating storage format data and make sure you test before doing mass updates.

Go to How to Find Confluence Pages and Then Do Something for techniques for finding content.

Links

...

  1. Setup an example page 

    No Format
    --action storePage --space xxx --title test --parent @home --content "aaa http://myjira.com bbb"


  2. Construct a modifyPage action for a single page using a simple text replace. Since : (colon) is in the text and is the default key:value separator for CLI, use # instead using the special parameter (spaces are significant!) 

    No Format
    --action modifyPage --space xxx --title at --findReplace "http://myjira.com#http://mynewjira.com" --special " #"


  3. Run against all pages with the link (using unix style escaping - see Tips). Run against your test space first before using @all.

    No Format
    --action runFromContentList --space xxxcql "type=page" --common "--action modifyPage --id @pageId@ --findReplace \"http://myjira.com#http://mynewjira.com\" --special \" #\" "


  4. Results 

    No Format
    Run: --action modifyPage --id 112197680 --findReplace "http://myjira.com#http://mynewjira.com" --special " #" 
    Page modified: 'at' in space: xxx. Page has id: 112197680
    ...


...