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

Create Multiple Projects using a script

I have a requirement to create a lot of projects in JIRA. Too many projects to be able to do them manually. I have a source file that has all the project information (name, key, notification scheme, security, workflow, project lead, category, etc). Using the CVS importer I cannot populate all of the fields that I need to. It looks like Jelly may do more of what I want, but it still doesn’t allow all of the fields in the project to be populated. I’m wondering if I am approaching this from the wrong angle. Does anyone else have thoughts on how I may be able to automate the creation of all of these projects, without having to do a ton of manual cleanup afterwards. Please note, that this is a one time action so it doesn’t have to be anything too elegant.


1 answer

Personally I would write a groovy script but if that's not your thing you could do with the JIRA CLI. Quite possibly that won't let you set the schemes you need to but Bob would have a better idea. Worth a look.

Ya, I had looked at the CLI, but it also doesn't do everything that I am looking for. I'm not familar enough with Groovy to figure out if that would work. I did look at it hoping that there may be an example. Didn't see one though. Looks like I may have to learn Groovy.

Thanks for the suggestions though

Writing a groovy script is an option, but creating a project is a hard place to start because it involves lots of maanger classes for all the schemes. If you're looking for "not elegant" I'd think just take a look at using curl/wget - do it before upgrading to 4.4 because it's 10 times more clicks to create a project in 4.4.

I've never done that before, but if its simplier than a groovy script then I'll certainly take a look at it. Thanks for the tips.

For the JIRA CLI , create an issue with what you think it is missing. Eventually it will improve as the JIRA APIs cover more stuff. Currently it only supports a few of the schemes for a project. You can also create the project with the CLI and then update it with a groovy script or similar to get at things that aren't supported yet.

Suggest an answer

Log in or Sign up to answer

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