Add Label Macro
The Add Label macro adds specified labels to a page if they are not already present.
Some predefined variables are allowed, and you can overwrite these variables or add specified custom variables.
Note: This macro cannot be edited, but you can disable it.
If you disable it in the instance, users will not be able to use the macro when working with Confluence pages in the instance.
Video walkthrough
You can watch our video to see the Add Label macro in action.
Use the Add Label macro on a Confluence page
When you are editing or creating a page in Confluence, you can use ScriptRunner for Confluence to add a label to the page.
When the page where the macro is located is saved or refreshed, the labels are applied. If some of the labels are already present, only the missing labels are applied. If all the labels are already present, no action is taken.