How to Create a User Macro to Create Spaces

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

There is a simple way to create your own macro to create a new space - just like the {create-space-button}. You can simply follow the below steps in order to have the ability to create spaces from pages:

  1. Go to Browse > Confluence Admin > User Macros
  2. Click on Create a User Macro
  3. Fill the fields as follows:
  • Macro Name: createspace
  • Macro Title: createspace
  • Template:

    <a id="create-new-space-link" class="fontSizeDefault" href="/spaces/createspace-start.action">
    <img src="/images/icons/add_space_32.gif" align='absmiddle' height="32" width="32"></a>
    <br />

    4. Click on Save
    5. To test, create a new page and test this new macro you have created by typing {createspace} or selecting it from the Macro Browser.

Last modified on Mar 25, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.