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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

No Macro Metadata when editing a Macro in editor

I'm building a new plugin for Confluence 4 and therefor using my first xhtml-macro ;-)
I already added a parameter to the definition in the atlassian-plugin.xml

<category name="external-content"/>
  <parameter name="status" type="enum" default="Open">
    <value name="Draft"/>
    <value name="Open"/>
    <value name="Accepted"/>

When I add the macro using the Macro Browser I get the option to select the status before adding it to my page.
If I try to edit the macro the Macro Browser shows me the message "No Macro Metadata", "There is no metadata configured for this macro which means no configuration screen can be presented here."

I thought adding the parameters to the XML would be sufficient for the Macro Browser/Editor.. isn't it?

Added 2 images, 1st is when adding the macro to the page.. 2nd is when I try to edit the Macro

Inserting Macro Editing the Macro

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

14 votes
Answer accepted

I have found the reason why it didn't work!

In my atlassian-plugin.xml I had the following

<xhtml-macro key="freshbooks-estimates" name="FreshBooks Estimates" class="nl.stefankohler.confluence.FreshBooksEstimatesMacro">

And that got me the above error.. Comparing it with the example Sam provided I changed the line to

<xhtml-macro key="freshbooks-estimates" name="freshBooks-estimates" class="nl.stefankohler.confluence.FreshBooksEstimatesMacro">

I made the difference bold, otherwise you might not see it ;-)
But that did the trick, for some reason an name with spaces in it is not allowed, which is not inline with the documentation or other components.. Maybe a bug?

My issue is resolved, thanks for all the effort!

its working for me .Thanks

I've tried it. The name="SomeName" seems to be the issue:

  • Upper-case first letter would reproduce the issue,
  • Upper-case in any other letter would reproduce the issue,
  • Hyphen (-) would work perfectly,
  • Space would work perfectly (surprisingly)

I would suggest using combinations of lowercase letters and hyphens only.

tousifs Rising Star Jul 09, 2012


its a trick rather than technical problem it work for me.

yes Correct My issue is resolved, When we use macro key and name both must be lowercase(all letters)

1 vote

I've given a simple XHTML macro a try to check whether I could reproduce here are the 3 files I have, everything works fine.


package xhtml.macro;

import com.atlassian.confluence.content.render.xhtml.ConversionContext;
import com.atlassian.confluence.macro.Macro;
import com.atlassian.confluence.macro.MacroExecutionException;

import java.util.Map;

public final class DemoMacro implements Macro
    public String execute(Map<String, String> stringStringMap, String s, ConversionContext conversionContext) throws MacroExecutionException
        return "It works!";

    public BodyType getBodyType()
        return BodyType.NONE;

    public OutputType getOutputType()
        return OutputType.BLOCK;

The plugin descriptor (atlassian-plugin.xml):

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${}" plugins-version="2">
        <vendor name="${}" url="${project.organization.url}"/>

    <xhtml-macro name="xhtml-macro-demo" class="xhtml.macro.DemoMacro" key="xhtml-macro-demo">
        <category name="development"/>
            <parameter name="status" type="enum" default="Open">
                <value name="Draft"/>
                <value name="Open"/>
                <value name="Accepted"/>

And the pom.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns=""


        <name>Example Company</name>

    <description>This is the xhtml-macro:xhtml-macro plugin for Atlassian Confluence.</description>





Hopefully that helps you sort things out. Let me know how you go…

0 votes
LuziaL Rising Star Jan 03, 2012

Hi Stefan,

A few links that may help you to verify/confirm you're doing everything right:

Now, we also have this bug ( we had another customer with the same symptom you're talking about and that was being caused by this bug. BUT, it could be something else for you.

Would you open a support issue at under Confluence project so we can take a closer look?


Best regards,
Luzia Mendes
Atlassian Support
Tweet us! #atlassiansupport
Have a Question? Get Answers on

Unfortunaly still having issues with the macro editor, I created an issue in the support JIRA Hopefully it's just a minor mistake I made somewhere ;-)

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

AUG Leaders

Atlassian Community Events