Copy a Project with all issues

I'm currently doing a lot of playing with workflows/Issue types in our OnDemand Jira instance with Greenhopper, and I'm looking for a way that I can essentially "revert" the project when I'm done playing.

I'm thinking that are various ways to solve the problem, but not sure if any are possible?

1. Backup the individual Project, then restore it.

2. Duplicate the project with all issues.

3. Write an application that uses the API to iterate through issues on one project and then commit them to another.

Has anyone tried to do this and has an idea of how it can be acheived?

Thanks,

Martin

2 answers

1 accepted

Hi Martin, the problem is that as you are in OD version of Jira you have limited options for this. In fact, there's a plugin (Script Runner) that can copy your project, but it does not copy all the issues.

There's a possibility of Importing a Project to the Jira instance but I'm almost sure this is not possible in OD version since it does make some changes on the instance.

Whatever you decide to do remember it's important to do a backup of the instance, in case something goes wrong.

In my opinion, what you have to do it's what I usually do, create a Test Project and Test Issues to try out anything you need. That way it wouldn't affect your real projects.

Hope this helps.

Just for the record, the script runner does copy the issues aswell! At least you have the option to do so...

I thought this might be the case, my issue is that I'm creating and tearing down projects almost daily at the moment to try and get a configuration that will work for us, so it's getting annoying having to create the issues everytime.

It does copy the issues but individually (at least that's what I think). Never seen an option to copy all the project with all the issues.

My bad... I really didn't knew there was that option but good to know now!

Just be aware that when you copy a project with lots of issues notifications for every issue will go out based on the existing notification scheme. I found this out the hard way.

that has been fixed, either in the latest version, or the version due to go out soon.

Thanks Jamie. That is good to know. I was running it on a JIRA 6.2.5 instance. But we have test servers that have 7.4 installed. Probably works just fine on that version.

You can actually use the Clone project option in the JIRA Command Line Interface, which works also with ONDemand:

- https://bobswift.atlassian.net/wiki/display/JCLI/Documentation

Is the command line interface available for OD?

Yes it is, as this tool is installed locally and not on the server. Read more at https://bobswift.atlassian.net/wiki/display/JCLI/JIRA+Command+Line+Interface

I see that JIRA Clone Plus Plugin is required. Please forgive me as I am new to the Jira world. I've looked but haven't found it. Could you direct me please?

Thanks

The documentation for the cloneProject command states the JIRA Clone Plus Plugin is required. When we started to buy it, the page stated it isn't supported in the OnDemand version. Am I missing something here? Perhaps we were trying to purchase it in the wrong location. Will you please provide the link that allow me to add it to OD?

Thanks

Chuck, you shouldn't need any extra plugins. JIRA CLI and JIRA Clone plugin are two different plugins. Go ahead and download this tool here, and follow the how to guide on how to configure it. There are also examples on the commands available here.

I really appreciate the quick response.

JIRA Cli is the tool I downloaded, installed, and configured. It was in the help text for jira-cli that I saw the JIRA Clone Project plugin was required.

The only examples I've found for clone are for cloneIssues, not cloneProject.

Aah, there's one here that I just tested with my OnDemand test instance https://bobswift.atlassian.net/wiki/display/JCLI/Documentation Look for the cloneProject command, and there's available parameters you can use. Hope this works mate.

Razaq,

As you've no doubt inferred, I'm new to Jira. Your patience and assistance is greatly appreciated.

I have run the cloneProject but I'm still having a problem. None of the detail comes across, i.e. description, etc. and the issues do not either. When I added the cloneIssue command to the same command line I received the following error:

java.rmi.RemoteException: This operation requires the Clone-plus plugin be installed on the JIRA server. Remove project and type parameters to use the regular clone operation.
Clone of issue EBI-310 failed.

Could you direct me to an example command line that actually results in the cloning of an entire project including issues, sub-issues, epics, etc?

Thank you.

This is an old thread, but for the sake others that end up here: this is the answer from Bob Swift - basically, if you are using OnDemand, you can't use cloneProject to clone your issues into the cloned project: https://answers.atlassian.com/questions/11986753/how-do-i-clone-a-project-on-jira-cloud

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

123 views 4 9
Read article

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