Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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 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

0 votes
Answer 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
}
1 vote
Tarun Sapra Community Leader 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

Like Jira Master likes this

script runner on Cloud has NO built-in script for "Copy Project" 

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. 

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
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

315 views 1 5
Read article

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