Can you automatically create a confluence workspace from a Jira (download) project?

I understand that Jira on-demand creates a confluence workspace automatically - can the same functionality be replicated with the download version?

1 answer

1 accepted

0 vote
Mizan Community Champion Jan 28, 2013

This can be achieved by creating a service which will check for number of projects and if a new project is found it will create a space in Confluence .

I had done this using script runner plugin and wrote a groovy service .

Hi Mizan, many thanks for the advise. I'll have pass this info onto my developers and get them to look at this.

Cheers - Ash

Hi Mizan - do you have an example script which you can share, so that I can pass this onto my dev team - much appreciated.


Mizan Community Champion Feb 14, 2013
import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator
import org.swift.common.soap.confluence.RemoteSpace

def locator = new ConfluenceSoapServiceServiceLocator()
def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1"))
def token = service.login("admin", "admin")

def page = new RemoteSpace (
        description:"this is a space automatically created via Jira "
service.addSpace(token, page)

Many thanks Mizan

Hi Mizan, I have created a similar script and tried to execute it from script console in Jira (my goal is to create a NEW confluence page, related to an existing space, when a NEW issue is created) but I get an error on ConfluenceSoapServiceServiceLocator Import. Is it executable from script console? And, if not, from where can I execute and debug it? How do I have to configure Jira and Confluence in order to get this code working? Is there a required setting to do before executing the script? Many thanks in advance for your help Arianna

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

100 views 0 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you