How to cut down the entities.xml file for different projects manually.

Hi,

After exporting the xml backup from the front end of JIRA, can we cut down the entities.xml depending on the projects ?

I mean, i want to separate the issues, custom fields, schemes etc of a particular project and then i want to import that single project. Is it possible manually or by means of any third party service?

1 answer

1 accepted

Accepted Answer
0 votes

You could spend a lot of time editing the XML to try to do this, but the second part of your question makes me think you might be missing something.

Jira has two imports from xml:

  • Everything: deletes all your current data, and imports everything in the xml
  • Project: pulls in the issues from a project in the xml

Given that, my question is "what exactly are you trying to do?". If you want to import the issue data from a project, then you just use project import. If you want to recreate the live system, then import all the xml.

The only useful thing I could think of doing by editing an export file would be to reduce the import time - say you had 100,000 issues but you only wanted the config and a handful of issues - removing 99,000 issues would massively reduce the import. But it's also likely to take you a LOT longer to understand and cleanly edit the xml to do it.

Suppose i am having 500 projects in my JIRA among which 400 are inactive. I have to remove these projects from the exported xml file and would like to import only those 100 active projects.

I dont know how to delete those projects from the XML file. I didnot understand the way, the entities.xml file is storing the data. Is there any simple way to delete single project info from that file ?

No, and that's my point - the xml is not human friendly. Better than machine code, but still immensely unfriendly.

It is almost certainly going to take you a LOT longer to edit the xml safely than it is to import the whole thing and then delete the projects (I'd script the delete - with https://bobswift.atlassian.net/wiki/display/JCLI/JIRA+Command+Line+Interface )

Thank you Nic. I will go through this link.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 3 hours ago in Canada

TOPIC TUESDAY - Fav Scary Monster!

Hey folks and happy Topic Tuesday! In the spirit of Halloween and all things scary, today's topic is what is your favourite horror movie monster. My personal choice here would be Jason from the Frida...

7 views 0 0
View post

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