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
4,364,816
Community Members
 
Community Events
168
Community Groups

Creating ScriptRunner for Confluence scripts that a Space Admin can run

Can I create ScriptRunner scripts that can be added to the Advanced Space Functionality section of Space Tools so that a Space Admin could run them?

2 answers

Hey Stephen! Just because I'm looking for something similar, I know there is a way to create over REST, so you would basically just need to create a service via scriptrunner that would handle this for you. Here's the most promising thread I've found: https://community.developer.atlassian.com/t/how-do-you-create-a-new-space-using-confluence-rest-api/2523?_ga=2.51287329.901805166.1555511667-1537815226.1553786306 

According to the docs here, here's another way to create a space:

curl -u admin:admin -X POST -H 'Content-Type: application/json' -d' { "key":"RAID", "name":"Raider",
"type":"global",  "description":{"plain": { "value": "Raider Space for raiders","representation":
"plain" }}}' http://localhost:8080/confluence/rest/api/space

 Hope that helps a little if you're still looking for a solution. I'll circle back if I figure out something relatively soon :)

Crickets. Fantastic. Even if my question is completely clueless and uninformed it'd be great if someone would just tell me. 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events