Manage Labels

Use this script to rename, add, and remove page labels in bulk. 

Labels can't contain spaces or uppercase letters. If you want a label to contain more than one word, use an underscore or a hyphen, which are the only two special characters allowed. They can contain a maximum of 255 characters.

The following tasks walk you through each action: 

Adding Labels

  1. Choose the Content Type from: 
    • All Content Types
    • Page
    • Blog
    • Attachment
  2. Choose the Location.

    • To work with the entire instance, choose All Spaces
    • To work with an entire space, choose Select Spaces, and then choose the Target Space(s).
    • To work with certain pages in a space, choose Select page(s) within a specific space, and then choose the Space and Page(s)

      This is unavailable if you're working with All Content Types in Content Type.

  3. For Label Action, choose Add Label(s)
  4. Enter the Label Name(s) you would like to add to the selected space and pages.

    If All Content Types is selected for Content Type, the action type also applies to attachments on pages.

  5. Select Run.
    You can select Preview instead of Run to view changes before implementing them. 
    Once you select Run, the Results of the script appear.

Removing Labels

  1. Choose the Content Type from: 
    • All Content Types
    • Page
    • Blog
    • Attachment
  2. Select the Location where you want to run the script:

    • To work with all spaces, choose All Spaces.

    • To work with certain spaces, choose Select Space(s), and then select the Target Space(s).

    • To work with certain spaces and pages, choose Select page(s) within a specific space, and then choose the Space and Page(s)

      This is unavailable if you're working with All Content Types in Content Type.

  3. Select Remove Label(s)
  4. Enter the Label Name(s) you would like to be removed from selected or all spaces.

  5. Select Run.
    You can select Preview instead of Run to view changes before implementing them. 
    Once you select Run, the Results of the script appear.

Renaming Labels

  1. Choose the Content Type from: 
    • All Content Types
    • Page
    • Blog
    • Attachment
  2. Select the Location where you want to run the script:

    • To work with all spaces, choose All Spaces.

    • To work with certain spaces, choose Select Space(s), and then select the Target Space(s).

    • To work with certain spaces and pages, choose Select page(s) within a specific space, and then choose the Space and Page(s)

      This is unavailable if you're working with All Content Types in Content Type.

  3. Select Rename Label(s)
  4. Enter the Original Label Name(s) of the new label and the New Label Name you want the label to be called.

  5. Select Run.
    You can select Preview instead of Run to view changes before implementing them. 
    Once you select Run, the Results of the script appear.
On this page