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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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: 

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
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

551 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you