set-label macro
1 Where to use it? | 2 Parameters | 3 Conditions | 4 Events | 5 Example | 6 All examples | 7 See also
Overview
The set-label
macro is used to add a label to content – either the current page or the immediate child pages.
Where to use it?
Optional.
One or more set-label
macros can be put in a trigger macro.
Parameters
Parameter | Required | Default | Notes |
---|---|---|---|
unnamed first parameter | Name of label to add
Name can use any character set supported by your Confluence server – except some reserved characters | ||
|
| What should the label be applied to?
| |
† Only works for pages, not blog posts. Use with caution! |
Conditions
The following conditions are applicable to labels
haslabel
parenthaslabel
Events
The following events are generated by this macro
labeladded
Example
{workflow:Labelled}
{state:Editing|submit=Review}
{state}
{state:Review}
{state}
{trigger:statechanged|state=Review}
{set-label:being-reviewed}
{trigger}
{workflow}
All examples
-
Add a label to child pages — Triggers to add a label to page using a pagecreated trigger with either a
parenthaslabel
or aischildof
condition