Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Situation: Using the Create From Template Macro to add new Weekly Report Pages to a space, which are then displayed on the main page (with the button) using the Display Children Macro.
Issue: This system is working fine when adding it within the Space Templates but when it was added as a Global Template for all projects to use the Create From Template Macro stopped allowing for the Template Name to be selected, thus stopping this main page from being added as a template without the user having to change the button each time they add it to their specific space.
Is there any known issues with this when creating Global Templates? I have searched here and on the web and have only come across a few others users with presumably the same issue that seemed to then resolve itself.
Using Confluence 5.5.3.
This is a limitation of the Create from Template Macro, because it requires you to enter a value for the Space field, and won't allow the value to be @self.
I've automated new project creation down to just about everything... save for this. It is quite frustrating.
Using it for one space works well, because you can add the spacekey in there. But for a global template it does not work well, because it doesn't allow for wildcard-like expressions.
Thank you for letting me know your issues too. It does cause a problem when trying to automate and standardise multiple projects across studios. I shall see if I can raise it as an issue, but for now I have just created a quick 'how to add template button' instructions to all the Global Templates that need them. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great idea Elizabeth. I just have to keep a side note for creating new spaces for folks that I need to edit this one little thing... It kills me a bit inside, but hey, I've automated nearly everything else. I have it on my list of plugins/macros I'd like to develop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to add a 'Create from Template' button to a global template (meaning the button links to a global template and is located inside a global template), you can follow these instructions:
You can now use this template in all spaces, the new page will be created in the space the button is located in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is perfect! Thanks so much
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much. It worked!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems to not be working anymore. When clicking the button in a space the create window pops up and nothing happens...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AWESOME! Such a strange work-around but it works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This workaround also didn't work for me because of the following error: "Error rendering macro 'create-from-template' : No space found with space key: null".
And here's how we managed to overcome it:
- I've created a test page from the parent Global Template
- Inserted the macro there (without specifying a Space)
- Copied the macro's button from the test page
- Paste it into the Global template
- Published it
Note: It will still show you that rendering error, but you should be able to create the page by clicking on that macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Valeriia Iuzhakova how did you copy the button? From within the editor? My copy is only picking up the link text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alistair Eldred You could try the following:
In the edit mode, on some page click on 'Insert more content' by [+] button > Select 'Other macros' from the drop-down list > Find and select 'Create from Template' macro > Insert button text, select appropriate Template and [Save] > Copy&paste this button from the test page to the Global template
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not working for me now. I change the space on the macro configuration, but the templates dropdown doesn't get populated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a global template and I want to create another global template using the button.
I tried creating the button on a page and it worked great. When I copied it over, the space goes blank, and the button doesn't render. When viewing the template, I receive the following error:
Click here to create a retrospective: Error rendering macro 'create-from-template' : No space found with space key: null
Still no resolution to this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The workaround works but is there a trouble report that I can follow?
Using Confluence 6.12.2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.