Page 1 of 1

Help with importing issues via XML

Posted: 25 Oct 2012, 17:26
by AlexDCampos
We are trying to use the Import/Export Issues plugin to see if we can take XML data and import it to our Mantis. To test, I took some of our existing tickets and exported it to XML, thinking I would be able to reimportant and see how it works easily. I haven't been able to accomplish this at all. Here is a sample of the XML data (Note that this was a direct XML export of a project with issues entered from our existing Mantis install):

<?xml version="1.0" encoding="UTF-8"?>
<mantis version="1.2.11" urlbase="http://tickets.pcgh.com/" issuelink="#" notelink="~" format="1">
<issue>
<id>43</id>
<project id="5">Oasis</project>
<reporter id="1">admin</reporter>
<handler id="6">Omari.Isaac</handler>
<priority id="30">normal</priority>
<severity id="10">feature</severity>
<reproducibility id="70">have not tried</reproducibility>
<status id="50">assigned</status>
<resolution id="10">open</resolution>
<projection id="10">none</projection>
<category id="1">General</category>
<date_submitted>1351172860</date_submitted>
<last_updated>1351172860</last_updated>
<eta id="10">none</eta>
<view_state id="10">public</view_state>
<summary>Integration/Bridging between Agency Matrix and ITC/Turbo Rater</summary>
<due_date>1</due_date>
<description>How does the system integrate with ITC, Bridges both ways to Agency Matrix and from Agency Matrix to Turbo Rater.</description>
</issue>
<issue>
<id>42</id>
<project id="5">Oasis</project>
<reporter id="1">admin</reporter>
<handler id="4">Alex.Campos</handler>
<priority id="30">normal</priority>
<severity id="10">feature</severity>
<reproducibility id="70">have not tried</reproducibility>
<status id="50">assigned</status>
<resolution id="10">open</resolution>
<projection id="10">none</projection>
<category id="1">General</category>
<date_submitted>1351172790</date_submitted>
<last_updated>1351172790</last_updated>
<eta id="10">none</eta>
<view_state id="10">public</view_state>
<summary>Agency Performance Reports</summary>
<due_date>1</due_date>
<description>A Report for Agency performance. This report would be for a date range, per person or per location the report would show, New Policies, Endorsements, Payments, Notes, Time Clocked in, Fees Charged, Premium</description>
</issue>
</mantis>

When I try to import, I get this error:

Image

This really should not have happened since the XML tag for category was generated from the XML export of the Mantis Issues in the first place. I figure ok, I can take out the tags for category and go from there. Less than ideal but I can get it to upload. Then I get this error:

Image

I need to know what format I need for XML and be able to upload XML files to Mantis Projects.

Thanks,