add-labels trigger action
add-labels trigger action
You can use the Add Labels action in a workflow trigger to automate adding one or more labels to a page or blog post. This can help reduce inconsistencies in document labeling and reduce your team's manual workload.
When you set the Add only to child pages configuration to True, labels are applied to the page's immediate children but not to the parent page itself or any further level of child pages.
Add Labels action parameters
Action Parameters | Value | Notes |
---|---|---|
Labels MANDATORY | One or more Confluence labels | At least one label must be added. |
Add only to child pages | Dropdown option:
| When set to True, label(s) are added to the immediate child pages of the current page. |
When the workflow Event occurs, the trigger checks that any required Conditions are met, and if they are, the Add Labels action adds one or more specified labels to a document or its immediate child pages.
This Add Label trigger action is part of a gradual rollout of new features and is not immediately available to all our customers.
“add-labels” JSON code
An Add Restrictions workflow trigger action added using the visual editor is automatically displayed as an “add-restrictions”
trigger action code editor.
You can also use the code editor to add the workflow trigger and the “add-restrictions”
action.
You can remove specific labels using the Remove Labels trigger action. All labels on a page can be removed using the Clean Labels trigger action.