Forums

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

How to Automate Project Creation and Configuration in Jira using SR

Hi community! 

Today I was organizing my Obsidian files and found my notes from a very interesting project I participated — one that involved a pretty cool automation I’d like to share with you.

 

Back in 2024, I was working with a National Industrial Education Organization here in Brazil. We were looking for a scalable solution to manage multiple projects efficiently. Given the size of the organization, we were dealing with a massive amount of data, teams, and ongoing initiatives. Just to give you an idea: Brazil has 27 states, and this organization runs initiatives across all of them.

One of the ideas brought to the table was to create a Jira project to serve as a portfolio, where each issue would represent a project initiative. Once an issue reached a certain status, someone would create a new Jira project and link it back to the issue using a project picker custom field. This setup gave us the best of both worlds: centralized tracking for upper management and a functional workspace for delivery teams.

To support this, we created two Jira projects to act as templates — one Kanban and one Scrum — each with its own set of custom schemes.

 

The Problem

Manually setting up a new project every time an initiative started was time-consuming. And the real issue? Some of the people assigned to do this didn’t even know how to properly configure a Jira project. We started seeing:

  • Template schemes being edited (and breaking other projects)
  • Projects created with the wrong schemes associated 
  • Permission chaos

 

Human error was turning the whole setup into a mess.

So I sat down with the stakeholders and said, “We really need to automate this — otherwise, in two years, you’ll be dealing with total chaos.” At that point, I wasn’t even sure how I’d do it, but I knew it had to be possible.

 

The Solution 

After many brain cooking sessions of research and testing, I implemented a solution using ScriptRunner.

I added a post function to the workflow of the portfolio project. Whenever an initiative transitioned to the “Started” status, a screen would prompt the user for two key pieces of information:

  • Project Key (text custom field)
  • Template Type (select list custom field)

 

Other details, like the project name, description, and lead, were pulled directly from the issue’s summary, description, and assignee.

The script then used the Jira REST API to automatically create and configure the project, using a switch-case structure to map each template type to its respective set of schemes (workflow, permission, notification, board, etc.).

So basically:

Issue transitions to “Started” → User fills the issue → Script runs → Project is created and ready to go.

No manual steps. No mistakes.

 

The Outcome

This automation saved a ton of time, effort, and resources. People who previously needed Jira admin rights just to create and configure projects no longer needed it. Their time could be spent doing what actually mattered: executing.

 


 

And that was the story for this Wednesday! Just wanted to share it here, hopefully this will be helpful or inspiring for someone going to a similar case.

If so, I’m leaving the script here to save you some time of coding: github.com/vitoriaselista/scriptrunner-project-creator

4 comments

Kristian Walker _Adaptavist_
Community Champion
May 22, 2025

Nice write-up, Ana. Thank you for sharing this use case, and you solved it using ScriptRunner.

Like Ana Vitória Selista likes this
Daniel Bagiński
Contributor
May 22, 2025

Hey,

This is fantastic! In our organization, we developed a similar solution using the no-code platform make.com. 

We created a new JSM request type called "Create a new business project," which includes the following fields:

  • Company
  • Customer
  • Team leader

When a request is submitted, automation kicks in, generating a new project from our template along with all necessary schemes. We assign the project name, key, and lead using the three details provided. Automation handles everything else. The only task left on our end is to adjust the filter and manage the board, as this functionality isn't yet available through the REST API.

Like Ana Vitória Selista likes this
Akanksha Shukla
Contributor
May 22, 2025

This was really helpful! Cant wait to try it out for my usecase.

Like Ana Vitória Selista likes this
Rick Westbrock
Contributor
May 27, 2025

Very cool idea, I noted this to possibly implement in the future. Apologies if the script already does this (I couldn't see it in the code) but have you thought about adding the user who submitted the work item to the Administrators project role after the project has been created? I only mention that because we would have a use case where the project would be created following standards but the requester may need to add other users to project roles and that sort of thing.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events