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

How to create confluence space automatically with blueprints?

Vaasanthi January 12, 2018

We want to create confluence space automatically and the below code works fine. How to specify blueprint (Documentation space/knowledge space/Team space) type here  so that space is created based on the blueprint type?  

def UserAccessor userAccessor = (UserAccessor) ContainerManager.getComponent("userAccessor")

SpaceManager spaceManager = (SpaceManager) ContainerManager.getComponent("spaceManager")

List<Space> allSpaces = spaceManager.getAllSpaces();

 

spaceManager.createSpace("AAA","Example space","This is an example",tmp_id)

 

 

2 answers

0 votes
Usman Khalid
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 8, 2018

Hi @Vaasanthi, There's an option of "Space Blueprints" within the Create space dialog. It creates a space with a customized homepage and sometimes include sample pages too.

0 votes
Bryan Lim February 24, 2018

Hi Vaasanthi,

I am not a developer in nature and I am also trying to figure out if i can create a page where users can request/create new spaces automatically.  Can you please help and give some direction if that is what you did?

Thanks!

Bryan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events