Create project template for Jira

Hi All,

Hope you are doing great!

We are working on template for project creation in jira. Browsed through JIRA suggestions and found that there is an open suggestion (https://jira.atlassian.com/browse/JRA-7020) almost 11 years old and with little hope that it may be implemented anytime soon, we were following the Atlassian tutorial for creating our own project templates at https://developer.atlassian.com/jiradev/jira-platform/guides/projects/tutorial-creating-a-project-template.

However, what i noticed is that the plugin built creates new workflows from the bundled workflows for each project and associates the newly created workflows to the newly created project.

I would really like to reuse the existing workflows (meaning used existing workflow and just associate to the new project not create new workflows) in the system and not create new one every time a project is created.

Any pointers will be helpful.

Thank you in advance.

-Parashar

4 answers

1 accepted

We could do it as following

  1. Added a projectHook as mentioned at https://developer.atlassian.com/jiradev/jira-platform/guides/projects/tutorial-creating-a-project-template
  2. Did not add any bundles for workflows or jason files for config.
  3. Manually change the required schemes after project creation by over riding the method configure() of the class implementing AddProjectHook in your plugin.
@Override
public ConfigureResponse configure(final ConfigureData configureData) {
//Change the schemes here using Jira API's
}

Noticed that a similar question is already asked at https://answers.atlassian.com/questions/276982. but for project-template not sure if that will help for project-blueprint module 

Will be trying the suggestion. 

1 vote
Tarun Sapra Community Champion Sep 11, 2016

The script runner plugin has a built-in script for "Copy Project" that can be used for creating projects from a project template. That's what I use.

Thank you Tarun for the suggestion.

We did evaluate the option but the problem is that it will include Role memberships and also optionally include filters, dashboards, rapid boards, issues, versions and components. 

So we want to go with a clean approach and not have any options to clone any of these objects as it might have issues with clean up later.

Another case is that the plugin will be helpful when script runner is not available.

-Parashar

I'm sure that you can help me.So,

Can I create a Project template for Jira Cloud?

I have not used or worked with Jira cloud. So i could only take a guess at it.

If you are allowed to upgrade and upload the plugins to Jira cloud then yes this plugin method should be a way to get it done.

If not may be going with Tarun Sapra's answer of script runner is an option.

You may wait for inputs  from other though or post your own query to the community.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 9 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

33 views 0 5
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