Hi,
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:
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
Deva.
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.
https://bitbucket.org/snippets/Adaptavist/LjrknK
I hope this helps you out!
Kind regards,
Tony
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.