It's not the same without you. This is the default type. I've been struggling (lots) with AJS, configuration files and feeling pretty overwhelmed for what seems like a simple request. If you do not specify a type, the default is Displays a checkbox to the user and passes the value 'true' or 'false' to the macro as a string.Offers a list of values for selection. You can specify the values to appear in a dropdown in the macro browser. Did you find the Solution, i have the same problem: The icon doesn't show for some reason, but DOES render properly upon update. Otherwise, register and sign in.Hi @Lars Kleen , Otherwise, register and sign in.Nope. If you've already registered, sign in.

It allows the user to select multiple parameters in one field. I was able to add more options by adding a third parameter that determines if the status is filled or not (doubles the amount of colors available). None Note about i18n: Confluence does not support internationalisation of the enum values.The value the user sees is the one passed to the macro as the parameter value, with … Example:If your macro does not accept parameters, you should use If the user macro contains no parameters and does not specify Including the macro body and parameters, the following Confluence objects are available to the macro:Named parameters ("foo", "bar") passed to your macro.Macros can also access objects available in the default Velocity context, We also recommend thoroughly testing your user macro with a number of permission scenarios, such as restricted pages and space permissions.You can determine which macro parameters should appear in the placeholder in the Confluence editor.By default as many parameters as can fit will be displayed in the placeholder, as shown here:You can control which parameters you want to display here, to ensure the most relevant information is visible to the author.For example, the Confluence Warning macro has two parameters, Let's assume an author adds the Warning macro to a page, and gives it a title of 'The title of the warning'. Log In. If you have multiple Include Page macros on a page, it it is difficult to manually update them. A Representational State Transfer (REST) endpoint is included in the Converting Pages macro, which converts all instances of Include Page to Include Version.The version number is specified to be the current latest version, so the page contents should be identical in all instances.

Easy to understand and with a very useful example. You're one step closer to meeting fellow Atlassian users at your local event. confluence-content: displays an autocomplete field for search on page and blog titles. Thanks for knocking this out. One solution is to create a wrapper macro – a user macro that wraps a Confluence macro, providing a way to control the parameters and possibly perform additional processing.

A user, when editing a Confluence page, chooses your macro in the macro browser and then enters the following in the macro placeholder that is displayed in the edit view:You can specify parameters for your macro, so that users can pass it information to determine its behavior on a Confluence page.When adding a macro to a Confluence page, the macro browser will display an input field for each macro parameter. User Macros can be implemented by Confluence administrators. The macro supports standard date formats which allows the user to format the date with various combinations. boolean: displays a check box.

Example with a default value:Confluence accepts this type, but treats it in the same way as 'string'.

* Add URL and choose label. I'm gonna try it this weekend.Excellent article.

Details. Passes the space key to the macro. Join the community to find out what other Atlassian users are discussing, debating and creating. Motivations for writing a macro are:This macro is good for creating dashboards for reporting on status. No typing; no color selection — quick, easy and consistent.Key to starting a wrapper macro is obtaining the storage view of a macro. This page provides information about the code you can enter in a user macro template. Get answers to your question from experts in the communityShare a use case, discuss your favorite features, or get input from the communityGetting Started with User Macros - Writing a Wrapper Macro The easiest way to obtain the storage view is to create a test page, insert the macro set to one of the desired configurations, then select For our use, we need to set two parameters: colour and title.Since the goal of this wrapper macro is to restrict the options to a defined set, we want the user to only be able to select from one of the defined priorities (the associated color will be set in macro code). ;-)Yes, excellent Bill. Thanks for publishing! But the colo(u)r value is still static, so a parameter is needed for this setting, for example:But we need to set the value of $priorityColor based on the value of $paramPriority and not force the user to select it.We could use an if-elseif tree to set the color value for our wrapper macro, but a more compact and less error-prone way to set this value is via lookup. Join the community to find out what other Atlassian users are discussing, debating and creating.page 48 shows an example how to set static enum parametersI would like to fill the values with dynamic values (eg. Note about i18n: Confluence does not support internationalization of the enum values.The value the user sees is the one passed to the macro as the parameter value, with …

Otherwise, register and sign in.I have the same question too, any answer to this so far ?You must be a registered user to add a comment. However, when he try to add the multiple eattribute to allow users to select more than one item from list, macro fails.

Defaults to false.Specifies whether the parameter accepts multiple values. It is very helpful.

Otherwise, register and sign in.Hi @Hatem Ounis , Are macro parameters persisted anywhere else besides atlassian-plugin.xml? If you've already registered, sign in.