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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to cretae a space with predefined page structure in Confluence using Script?


I have two requirement like,

1) I need to create a space with some predefined page structure automatically using the script runner that means whenever i created a new project in jira then automatically a space with predefined page structure should be created in the Confluence.

2)  If i create a space by using create button in Confluence then automatically that space should come with some predefined page structure.

For example, the page structure as below:

  • Explore
    • Requirement
    • Resource
    • Plan
  • Concept
    • Technical Specifications
    • Architecture
  • Development
    • Implementation
    • Code
  • Deliver
    • Release management
    • Test management

Could you please assist me with the script or the any other way to achieve both of the above requirements.

I don't need any add-on to achieve the above requirements.

Thanks & Regards



1 answer

1 accepted

Hi Deva,

We have a script here written a while back for a ScriptRunner demo that you are welcome to use, though it may need slight adaptation to fit your precise requirements. For example, for your 2nd requirement the code could be adapted to be called in an Event Listener which listens to the SpaceCreate event.

The script can be used as a REST Endpoint in ScriptRunner for Confluence and will create the page structure specified.

I hope this helps you out!

Kind regards,

Hi Tony,

Thank you so much for your response. The script which you suggested working great.



Suggest an answer

Log in or Sign up to answer

Atlassian Community Events