The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating ScriptRunner for Confluence scripts that a Space Admin can run

Stephen Gilson
January 30, 2019

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Andrew Wolpers
April 18, 2019

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 :)

0 votes
Stephen Gilson
February 28, 2019

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

TAGS
AUG Leaders

Atlassian Community Events