JIRA is a pain when you need to create lots of projects with custom Schemes. On the XWiki open source project we allow the community to contribute extensions and we offer a place to host the sources in the xwiki-contrib GitHub organization. We also offer for each project a JIRA project where users can report issues and where developers can track what they're working on.
Thus we have the need to create lots of JIRA projects. Today, I got bored of repeating over and over the same setup for creating such projects. It involves 9 steps:
- Setting the category
- Setting the custom XWiki Workflow Scheme
- Setting the custom XWiki Screen Scheme
- Setting the custom XWiki Field Configuration Scheme
- Setting the custom XWiki Notifications Scheme
- Setting the custom XWiki Permission Scheme
- Setting the Project Lead
- Setting the project URL
- Setting some groups in one of the project's Roles
Following this tutorial (and a lots of googling ) I was able to automate steps 1-6 in the above list (Source code).
Now when we create a new JIRA project we get this nice template:
The main code doing the work is in XWikiAddProjectHook.java:
Enjoy!