Response body:Response contains an 'item' element for every issue from the request. If issue can be imported then attribute 'imported' of the respective 'item' element is 'true'. Otherwise the 'imported' attribute is 'false' and there are 'error' subelements with additional information about nature of the import problem. If request query parameter 'test' is true, then no issues are actually saved to database. With such requests one can check if import data is correct.

Sample

Correct

Request:

PUT /rest/import/CMN/issues
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><issues><issue><fieldname="numberInProject"><value>1917</value></field><fieldname="summary"><value>Exterminate tsar</value></field><fieldname="description"><value>The Russian Revolution is the collective term for the series of revolutions in Russia in 1917, which destroyed the Tsarist autocracy and led to the creation of the Soviet Union. In the first revolution of February 1917 (March in the Gregorian calendar), the Tsar was deposed and replaced by a Provisional government. In the second revolution, during October, the Provisional Government was removed and replaced with a Bolshevik (Communist) government.</value></field><fieldname="created"><value>1149678852000</value></field><fieldname="updated"><value>1159374446000</value></field><fieldname="updaterName"><value>stalin</value></field><fieldname="resolved"><value>1260367510059</value></field><fieldname="reporterName"><value>lenin</value></field><fieldname="victims"><value>11</value></field><fieldname="party"><value>РСДРП (б) 1912 - 1917</value></field><commentauthor="stalin"text="It is enough that the people know there was an election. The people who cast the votes decide nothing. The people who count the votes decide everything."created="1267030230127"/><commentauthor="khrushchev"text="Support by United States rulers is rather in the nature of the support that the rope gives to a hanged man."created="1267030238721"updated="1267030230127"/></issue><issue><fieldname="numberInProject"><value>1928</value></field><fieldname="summary"><value>Implement collectivization</value></field><fieldname="created"><value>1149678852000</value></field><fieldname="reporterName"><value>stalin</value></field><fieldname="victims"><value>1300000</value></field><fieldname="party"><value>ВКП (б) 1925 - 1952</value></field></issue></issues>

Error

Request:

PUT /rest/import/CMN/issues?test=true
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><issues><issue><fieldname="numberInProject"><value>1917</value></field><fieldname="summary"><value>Exterminate tsar</value></field><fieldname="description"><value>The Russian Revolution is the collective term for the series of revolutions in Russia in 1917, which
destroyed the Tsarist autocracy and led to the creation of the Soviet Union. In the first revolution of February
1917 (March in the Gregorian calendar), the Tsar was deposed and replaced by a Provisional government. In the
second revolution, during October, the Provisional Government was removed and replaced with a Bolshevik
(Communist) government.
</value></field><fieldname="created"><value>1149678852000</value></field><fieldname="updated"><value>1159374446000</value></field><fieldname="updaterName"><value>stalin</value></field><fieldname="resolved"><value>1260367510059</value></field><fieldname="reporterName"><value>lenin</value></field><fieldname="Build"><value>Some Read Only</value><value>Value</value></field><fieldname="scf"><value>1260317512059</value></field><fieldname="cf"><value>1</value></field><commentauthor="who!"text="It is enough that the people know there was an election. The people who cast the votes decide nothing. The people who count the votes decide everything."created="1267030230127"/><commentauthor="root"text="Support by United States rulers is rather in the nature of the support that the rope gives to a hanged man."created="1267030238721"updated="1267030230127"/></issue><issue><fieldname="numberInProject"><value>1987</value></field><fieldname="summary"><value>Perestroyka</value></field><fieldname="description"><value># Reduce GDP
# Split USSR into separate states
# Reduce population
</value></field><fieldname="created"><value>1149678852000</value></field><fieldname="reporterName"><value>gorbachev</value></field><fieldname="party"><value>КПСС 1952 - 1993</value></field></issue></issues>

Response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><importReport><itemimported="false"id="1917"><errorfieldName="numberInProject"value="1917">Value is not unique</error><errorfieldName="comment.author"value="who!">Value is unknown</error><errorfieldName="Build">Field is unknown</error><errorfieldName="scf">Field is unknown</error><errorfieldName="cf">Field is unknown</error></item><itemimported="true"id="1987"/></importReport>