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?
Crickets. Fantastic. Even if my question is completely clueless and uninformed it'd be great if someone would just tell me.
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
It looks like you're new here. Sign in or register to get started.