Skip to main content
Create a Space in Confluence automatically from Jira Service Desk
Share on socials
Magic springs out of a code editor
Sim Hua Soon, Akeles
GUEST AUTHOR: Sim Hua Soon, Akeles
25th September, 2023
Confluence
Jira

Create a Space in Confluence automatically from Jira Service Desk

One of the most common requests Confluence admins receive from users is to create a new Space for their new projects. Learn how to automate this from a Jira Service Desk request.
This post is a guest blog by Akeles.
There are many tasks on the to-do list of a Confluence administrator. Between your routine clean-up work, the tickets coming in from users, and your own list of improvements: it is a challenging job. Taking time to streamline processes and automate tasks is a great way to free up time for the work that deserves your attention.

How to create a Space in Confluence

One of the most common requests Confluence admins receive from users is to create a new Confluence Space for their new projects. Confluence admins handle these requests to avoid messy Confluence Spaces and enforce the use of corporate-defined Space templates.

However, the process is lengthy and adds to the workload of our already thinly-spread admins. The process looks like this:

  1. The user submits a request for a new Confluence Space on the Jira Service Desk.
  2. The request is sent to the department’s Confluence representatives for approval.
  3. The department’s Confluence representatives assess whether there is a need to create a new Space or if an existing Space can be used.
  4. Once consent is given, the request is reassigned to the Confluence admins.
  5. The Confluence admins then:
    • Create the Confluence Space using the Copy Space built-in script.
    • Update the Space permissions, making the requester an admin of the Space.
Copy Space built-in script from ScriptRunner for Confluence

How to automatically create a Space in Confluence

Using ScriptRunner, we created a useful script to create new Confluence Spaces automatically from the Jira Service Desk. With ScriptRunner installed in both Jira and Confluence, this job is a quick and easy win!
We simply update the Jira workflow to add a Custom Script post function. Once approved by the department’s Confluence representatives, this script fires a REST API call to trigger the Copy Space built-in script from the Confluence side.
The new project Space is created immediately and is ready for use.
This script:
  • Reduces turnaround time
  • Reduces manual work for Confluence admins

Ready to save even more time?

You could save even more time by bulk-approving Space creation requests using Akeles' own app: Bulk Approvals for Jira Service Management.
A simple workflow shows a request being approved, a custom script in Jira and a Copy space in Confluence

Manage Confluence at scale

Work faster and smarter with ScriptRunner for Confluence. Automate time-consuming admin tasks, manage content in bulk, and extend Confluence’s functionality with improved user experience and seamless integration with other software.

Try ScriptRunner for Confluence today

--
Many thanks to Sim Hua Soon and the Akeles team for sharing these time-saving tips with us!