Choose Label Macro
Using the Choose Label macro, you can add labels and generate suggested labels to a page if they are not present.
You can use some predefined variables, overwrite variables, or add user-specific custom variables.
Walkthrough
You can watch our video to see the Choose Label macro in action.
Use the Choose Label Macro
When the page where the macro is located is opened, the Choose Label macro is shown and only the applicable labels are shown. If all the provided labels are already present on the page, the macro is not shown.
Macro Configuration Tips
Use Provided Variables as Labels
ScriptRunner provides several variables that you can use to add specific labels. To use them, add the variables to the Labels field as you would any standard label.
- $username - Username of the person who created and/or edited the page.
- $fullname - The full name of the person who created and/or edited the page.
- $year - The year when the page was created and/or edited.
- $month - The month when the page was created and/or edited.
- $day - The day when the page was created and/or edited.
- $parent - The parent title of the current page.
Once you save the macro and the page loads, variable labels load with the correct data. The added labels can be seen on the bottom right of the page.