In older versions of JIRA it was possible to cut & paste text containing control characters into JIRA issue fields. This causes problems, because JIRA's backup format is XML, and XML does not allow for the storage of most control characters . When XML containing control characters is imported into JIRA, the import fails with an error:
To fix this, one needs to remove the control characters from the JIRA backup file. This can be done as follows:
- Download atlassian-xml-cleaner-0.1.jar
- Open a DOS console or shell, and locate the XML or ZIP backup file on your computer, here assumed to be called jiradata.xml
- Run: This will write a copy of jiradata.xml to jiradata-clean.xml, with invalid characters removed. You should now be able to import jiradata-clean.xml without problems.