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


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

0 votes
Accepted answer

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 )

Thank you Nic. I will go through this link.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 3 hours ago in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

47 views 1 3
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