Macro Parameters
Information about the parameters that can be set up for custom macros.
The parameters that are available for use that you don't have to add using this method are:
pageVersionmacroIdspaceKeypageId
Implicit parameters are stored in the same map array as user-defined parameters outlined on this page and can be used in the same way. Avoid giving user-defined parameters the same name as these implicit parameters. You cannot have two items in a map array with the same name.
Set up the macro parameter
When you create a custom macro, you can add a field that requests the user to input information when the macro is used on a Confluence page. To set up a new parameter, follow these steps:
The parameter you added appears in a table on the Custom Macros field:
The parameters that you define are stored in an array called parameters and can be accessed using the parameter name as follows:
- If you have not used spaces in the Name:
parameters.parameterName - If you have used spaces in the Name:
parameters.'Parameter Name'