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)
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.
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
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.