XML format for import & export files

Michael Breu July 11, 2019

Page https://confluence.atlassian.com/jirakb/xml-format-for-import-export-files-695108230.html claims, there exists a $JIRA_INSTALL/ WEB-INF/classes/entitymodel.xml file with the information about the export format. However, I cannot find this file.

It seems that between jra V7.1.2 and V7.13.2 the export format changed. The HTML-description is not escaped any more in the XML, but embedded as plain (X)HTML.

 

Old Format

<!-- RSS generated by JIRA (7.1.2#71006-sha1:8e7e3091c211bab4b45730515b8b1591e99b0c1c) at Thu Nov 09 07:58:50 CET 2017
It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
https://devops-omnetric.ptdea.siemens.com:442/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+ATM+AND+issuetype+%3D+Test+AND+labels+%3D+TIN+ORDER+BY+reporter+DESC%2C+assignee+DESC&amp;tempMax=1000&amp;field=key&amp;field=summary
-->

...
<description>&lt;p&gt;&quot;Unterst&#252;tzte Standardprotokolle f&#252;r die Nagios-&#220;berwachung&lt;br/&gt;...

New Format

<!-- RSS generated by JIRA (7.13.2#713002-sha1:c794ca7f765e33db99fba702fc81ff5094795e24) at Thu May 23 14:56:59 CEST 2019 It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request. For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request. -->
<!-- If you wish to do custom client-side styling of RSS, uncomment this: <?xml-stylesheet href="https://devops-omnetric.ptdea.siemens.com:442/styles/jiraxml2html.xsl" type="text/xsl"?> -->
...
<description>
<p>Unterstützte Standardprotokolle für die Nagios-Überwachung<br/>...

Although still valid XML, it is now much harder to parse, because HTML and RSS/Jira-Namespaces are not separated.

Is there an authorative XML-schema, how JIRA exports its issues?

 

Thanks

 

Michael

1 answer

0 votes
Techn Blade
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2022
<!-- RSS generated by JIRA (9.2.0#920000-sha1:ef10a0be9967f4b128858ffd75f499140d8d6401) at Thu Oct 20 20:07:52 EEST 2022 It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request. For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request. -->
<rss version="0.92">
<channel>
<title>Jira</title>
<description>This file is an XML representation of an issue</description>
<language>en</language>
<build-info>
<version>9.2.0</version>
<build-number>920000</build-number>
<build-date>25-08-2022</build-date>
</build-info>
<item>
<title>[MCPE-163427] The text in the new touch controls menu is broken</title>
<project id="10200" key="MCPE">Minecraft (Bedrock codebase)</project>
<description><p>The text in the new touch controls menu is broken. Instead of the name of the selected control, internal code names appear.</p></description>
<key id="518609">MCPE-163427</key>
<summary>The text in the new touch controls menu is broken</summary>
<status id="1" iconUrl="https://bugs.mojang.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
<statusCategory id="2" key="new" colorName="default"/>
<resolution id="-1">Unresolved</resolution>
<reporter username="Fampa">Fampa</reporter>
<labels> </labels>
<created>Thu, 20 Oct 2022 13:53:12 +0200</created>
<updated>Thu, 20 Oct 2022 18:19:54 +0200</updated>
<version>1.19.50.21 Preview</version>
<votes>1</votes>
<watches>2</watches>
<comments>
<comment id="1206581" author="killerbeenl83" created="Thu, 20 Oct 2022 18:19:54 +0200"><p>Note: To reproduce change the language to US English</p></comment>
</comments>
<attachments>
<attachment id="510930" name="Screenshot_2022_1020_171851.jpg" size="52518" author="Fampa" created="Thu, 20 Oct 2022 13:52:31 +0200"/>
<attachment id="510929" name="Screenshot_2022_1020_171914.jpg" size="51211" author="Fampa" created="Thu, 20 Oct 2022 13:52:41 +0200"/>
<attachment id="510928" name="Screenshot_2022_1020_171928.jpg" size="55709" author="Fampa" created="Thu, 20 Oct 2022 13:52:48 +0200"/>
</attachments>
<subtasks> </subtasks>
<customfields>
<customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
<customfieldname>CHK</customfieldname>
<customfieldvalues>
<customfieldvalue>Thu, 20 Oct 2022 17:10:00 +0200</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
<customfieldname>Confirmation Status</customfieldname>
<customfieldvalues>
<customfieldvalue key="10303">
<![CDATA[ Confirmed ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12700" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
<customfieldname>Description</customfieldname>
<customfieldvalues>
<customfieldvalue>[Briefly describe the bug here] <br/> <br/> *Steps to Reproduce:* <br/> # [Step 1] <br/> # [Step 2] <br/> # [Step 3] <br/> <br/> *Observed Results:* <br/> [Describe what happens] <br/> <br/> *Expected Results:* <br/> [Describe what should happen] <br/> <br/> *Screenshots/Videos attached:* [please attach an image or short video] <br/> <br/> *Notes:*</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
<customfieldname>Development</customfieldname>
<customfieldvalues> </customfieldvalues>
</customfield>
<customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
<customfieldname>Linked</customfieldname>
<customfieldvalues>
<customfieldvalue>0.0</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_10402" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
<customfieldname>Platform</customfieldname>
<customfieldvalues>
<customfieldvalue key="11503">
<![CDATA[ Multiple ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
<customfieldname>Rank</customfieldname>
<customfieldvalues>
<customfieldvalue>0|i2avof:</customfieldvalue>
</customfieldvalues>
</customfield>
</customfields>
</item>
</channel>
</rss>
Michael Breu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 21, 2022

Hello Techn Blade,

 

Is this the official authorative XML-schema?

 

I'm not sure, whether our customer would accept an  informal forum post.

Is there a link on the atlassian support pages?

Best regards

Michael

Suggest an answer

Log in or Sign up to answer