Versions Compared

Key

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

Description

The addLabels the removeLabels actions support both content and space labels (see link). There can be confusion when using the removeLabels action when only the space parameter is used. This will only removes remove a space label and does not affect any page labels. If you specify a title or id parameter, then it will remove a content label. 

If you need to remove one or more labels from all the pages in a space, then the following steps will work.

Working with Confluence Labels - discusses content and space labels

Steps

  1. Use runFromPageList or similar run actions to remove labels from multiple pages. For instance, all pages in a specific space.

     

    No Format
    confluence --action runFromPageList --space zconfluencecli --common '"--action removeLabels --labels xxx --id @pageId@'"


  2. Use other parameters on the runFromPageList action to subset the removal.

Alternatives

Use runFromSql for more fine grained control over what pages to affect.

...