Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How can I clone a project in JIRA?

Would it be possible to download an XML copy of all the issues in a particular project and upload them into another project within the same JIRA Instance?

5 answers

1 accepted

3 votes
Answer accepted

JIRA allows you to restore a single Project from an XML backup, see Restoring a Project from Backup.

Since you want to restore (clone) the Project into the same JIRA instance, you should rename the source Project before doing the restore.

For example, if you want to clone Project SRC to TGT

  • Make an XML backup.
  • Copy your attachments directory somewhere.
  • Rename SRC to TGT.
  • Recreate a blank SRC project with the same schemes/settings as TGT.
  • Restore SRC from the XML backup, you will need to point to the restore process to the copy of your attachements directory.

I suggest doing a trial-run of this procedure in a test environment first. (You can easily create a test environment with your XML backup and the copy of the attachements directory you need for the first two steps.)

Additionally, if you are not afraid of XML, you can simply modify the XML (not JIRA recommended way, but I used it). However, you MUST definitevly TRY it first on a CLONE of your production environment. Sorry for the emphasis, but it's needed :)

You can use the JIRA Command Line Interface getIssueList to get all issues within a project. Then there are a couple of options to automate copying them into a new project. Either use createIssue, cloneIssue or runFromCsv to process. This solution is best if it is a regular thing you need to do with automation as opposed to a one time thing :). cloneIssue between projects requires JIRA Clone-Plus plugin

NEW: A new cloneProject CLI action is in progress - a snapshot will be available soon! See JCLI-153 - comments and suggestions welcome there.

jira-cli-2.2.0-SNAPSHOT-distribution.zip is a snapshot available that implements JCLI-153 . Tested on 4.2.4, 4.3.3, and 4.4-beta1. I would like people to try it out and provide feedback.

Bob, your cli-tools are fantastic! thanks

Not sure about XML but you can try exporting the issues into Excel, convert the file to CSV and use the in-built CSV importer to import it back to the new project.

http://confluence.atlassian.com/display/JIRA/Importing+Data+From+CSV

This would require all the customfields to be available in the target project as well. And the workflow should be same or else it requires a migration.

Hi Luiza, not specifically answering your question, but you might find this interesting:

Have a look at this plugin:

https://plugins.atlassian.com/plugin/details/15453

Specifically have a look at this documentation to see what it does:

http://www.customware.net/repository/display/AtlassianPlugins/CustomWare+JIRA+Utilities+Usage+Guide

You could set up a workflow transition to copy your issue to a new project, and then perform a Bulk Edit operation to transition all your issues (or just the ones returned from your search).

A feature request has been created for this, please vote for it: https://jira.atlassian.com/browse/AOD-6722

... as usual when there's a paid addon as a "workaround", apparently

Suggest an answer

Log in or Sign up to answer
TAGS

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