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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Select Template in space blueprint

Is it possible to switch the used template in space blueprints?

I would like to create a space blueprint, which uses multiple possible templates, where the user can select one of them.

equivalent to this:

I used the input field from the example, but that didn't work.


The goal is to provide different space structures with child-pages. I managed to set these up, with help from this question:

But I would like to be able to change the used template and hierarchy based on a user selection.


1 answer

1 accepted

Hi @Soumyadeep Mandal - SaM ,

This was unfortunately not what I searched for.

I wanted all that in a custom plugin. And found a solution. For anyone interested, the main components are:

Blueprint in atlassian.xml

<content-template key="my-space-homepage-template"
key="" />
<resource name="template" type="download"
location="/xml/my-home-page.xml" />

<space-blueprint key="my-space-blueprint"
i18n-name-key="" category="custom-category">
<content-template ref="my-space-homepage-template" />

<dialog-wizard key="my-space-blueprint-wizard">
<dialog-page id="mySpaceId"
last="true" />


 A event listener, which reacts to the homepage creation:

public class BlueprintSelectionEventListener implements DisposableBean {

private final EventPublisher eventPublisher;

public BlueprintSelectionEventListener(EventPublisher eventPublisher) {
this.eventPublisher = eventPublisher;

public void onSpaceBlueprintHomepageEvent(SpaceBlueprintHomePageCreateEvent event) {
String moduleCompleteKey = event.getSpaceBlueprint().getModuleCompleteKey();
if (MY_BLUEPRINT_KEY.getCompleteKey().equals(moduleCompleteKey)) {
String selectedTemplate = event.getContext().get("contentTemplateKey").toString();

public void destroy() throws Exception {

 And a selection in the soy template (similar to:

<select id="template-key-selector" class="select" name="contentTemplateKey">
   <option value="template_key">template description</option>


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,663 views 7 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you