Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Testing upgrade from Confluence 3.4.3 to 4.0beta

Leo B September 5, 2011

Hello, I'm testing this new version and i'm having some problems. The user macros are not working anymore after the upgrade, i have this message: "There are user macros without any metadata configured in their template. They have been highlighted below."

Also, all the plugins that i have, it seems that i don't have them anymore.

Help, please... Thanks in advance.

2 answers

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 6, 2011
Plesse add an example user macro that doesn't work on C4
Leo B September 8, 2011

Hello, this is what i'm trying to use:

## General variables needed for this user macro - do not change

#set ($remoteUser = $action.remoteUser)

#set ($staticResourcePrefix = $webResourceManager.getStaticResourcePrefix())

#set ($categCounter = 0)

##==============================================================================

## MODIFY - CUSTOMIZE TO YOUR NEEDS (only 2 variables)

## Enter category names, example: ["Categ 1", "Categ 2"]

#set ( $categoryNames = ["Public", "AESS Group", "Project", "Archive"] )

#*

Enter spacekeys for each category

-> the number of entries must be the same as the number of categories specified in the var $categoryNames

-> the keys of the map must be named the same as the category names in the $categoryNames variable

*#

#set ( $spaceCategories = {} )

$spaceCategories.put("Public", ["SPACE_KEY"])

$spaceCategories.put("AESS Group", ["SPACE_KEY"])

$spaceCategories.put("Project", ["SPACE_KEY"])

$spaceCategories.put("Archive", ["SPACE_KEY"])

It created different categories for the spaces on the dashboard. I don't understand why is this not working anymore on this version. Any clue?
Thanks.
0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 5, 2011

The meta data for user macros is that stuff at the top of the macro in comments. Without the metadata, Confluence 4 does not know how to display the macro parameters in the macro browser

The example macro below has 2 parameters, one of which is optional.

## Macro title: My Macro
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name

## This is an example macro
## @param Name:title=Name|type=string|required=true|desc=Your name
## @param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour

Hello, <font color="$paramColour">$paramName</font>!

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 5, 2011

BTW: Don't use the font tag :(

Leo B September 5, 2011

Hello, thanks for your help but it is not working. I've added those coments at the top of the macro and it's still showing the same message. What i'm doing wrong?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events