It's all about the answers!

Ask a question

Import requirements from XML


christian Sause (11) | asked Aug 10 '09, 12:30 p.m.
I'm looking to import requirements from xml format, but I can't find the required XML schema in any of the documentation. I've tried using the "addNewCustReq.xml" file from some of the sample documentation but that format doesn't work.

Does anybody have the format required to make the import work in 2.0? Here's a sample of what I've tried:

<xml>
- <requirement>
<identifier>Req1</identifier>
<title>Sample1</title>
<description>Sample requirement</description>
<updated>20090713 1335</updated>
<state>DRAFT</state>
<creator>Tester1</creator>
<owner>Manager1/owner>
<creationtime>2009071 1100</creationtime>
</requirement>

3 answers



permanent link
John Nason (2.4k1012) | answered Aug 11 '09, 10:07 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hello,
You can find up-to-date API information at:
https://jazz.net/wiki/bin/view/Main/RqmApi
This includes information about the RQM schema for the REST API.
If that does not serve your needs, let us know.
Regards,
John

I'm looking to import requirements from xml format, but I can't find the required XML schema in any of the documentation. I've tried using the "addNewCustReq.xml" file from some of the sample documentation but that format doesn't work.

Does anybody have the format required to make the import work in 2.0? Here's a sample of what I've tried:

<xml>
- <requirement>
<identifier>Req1</identifier>
<title>Sample1</title>
<description>Sample requirement</description>
<updated>20090713 1335</updated>
<state>DRAFT</state>
<creator>Tester1</creator>
<owner>Manager1/owner>
<creationtime>2009071 1100</creationtime>
</requirement>

permanent link
John Nason (2.4k1012) | answered Aug 13 '09, 2:09 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
I understand you had more trouble with this. I was going to post a snippet example but the silly formatter for messages on this forum strips out key information.
Instead, you can look at some examples in the <Install>\samples\classics directory. For instance, ViewOrderStatus_Req.xml (anything ending in _Req will be good). I have verified that those work through the XML import available over the web UI.
Regards,
John

I'm looking to import requirements from xml format, but I can't find the required XML schema in any of the documentation. I've tried using the "addNewCustReq.xml" file from some of the sample documentation but that format doesn't work.

Does anybody have the format required to make the import work in 2.0? Here's a sample of what I've tried:

<xml>
- <requirement>
<identifier>Req1</identifier>
<title>Sample1</title>
<description>Sample requirement</description>
<updated>20090713 1335</updated>
<state>DRAFT</state>
<creator>Tester1</creator>
<owner>Manager1/owner>
<creationtime>2009071 1100</creationtime>
</requirement>

permanent link
Libor Bus (1534) | answered Aug 10 '10, 6:07 a.m.
Hello,
can you please post an example how to import requirement with a custom attribute? We tried following, but does not work:

Definition of requirement custom attribute:
<customAttribute id="com.ibm.team.workitem.workItemType.requirement.req_test" name="Test" type="string"/>

XML for import:
<?xml version="1.0" encoding="utf-8"?>
<requirement xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"
xmlns:jzalm="http://jazz.net/xmlns/alm/v0.1/"
xmlns:alm="http://jazz.net/xmlns/alm/v0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:myns="http://mydomain.net/some/custom/namespace/v0.1/"
xmlns:ts="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/"
xmlns:er="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1/">
<XLSArtifactID>RQ_11112</XLSArtifactID>
<dc:title>RQ_11112</dc:title>
<dc:creator>John Williams</dc:creator>
<customAttributes>
<customAttribute type="string">
<identifier>com.ibm.team.workitem.workItemType.requirement.req_test</identifier>
<name>Test</name>
<value>This some some test description ...</value>
</customAttribute>
</customAttributes>
<dc:description>This is a new requirement ...</dc:description>
</requirement>

Thanks in advance.
BR,
Libor

I understand you had more trouble with this. I was going to post a snippet example but the silly formatter for messages on this forum strips out key information.
Instead, you can look at some examples in the <Install>\samples\classics directory. For instance, ViewOrderStatus_Req.xml (anything ending in _Req will be good). I have verified that those work through the XML import available over the web UI.
Regards,
John

I'm looking to import requirements from xml format, but I can't find the required XML schema in any of the documentation. I've tried using the "addNewCustReq.xml" file from some of the sample documentation but that format doesn't work.

Does anybody have the format required to make the import work in 2.0? Here's a sample of what I've tried:

<xml>
- <requirement>
<identifier>Req1</identifier>
<title>Sample1</title>
<description>Sample requirement</description>
<updated>20090713 1335</updated>
<state>DRAFT</state>
<creator>Tester1</creator>
<owner>Manager1/owner>
<creationtime>2009071 1100</creationtime>
</requirement>

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.