It's all about the answers!

Ask a question

RQM: How to created nested categories wirt REST API


Jörg Werner (3033881) | asked Feb 04 '14, 9:15 a.m.
Hello,

Is it possible to create a nested category structure using REST API and if yes can you please provide the syntax.

Example: Two categories Country and City with some values:


 thanks a lot, Joerg

Accepted answer


permanent link
Paul Slauenwhite (8.4k12) | answered Feb 05 '14, 2:36 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Yes, using the categoryType and category resource types (https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op).  I would recommend creating an example in the RQM UI and using the RQM REST API to GET the categoryType and category resources to see the desired structure.
Jörg Werner selected this answer as the correct answer

Comments
Jörg Werner commented Feb 06 '14, 4:00 a.m.

Thanks, Paul,

I could import a nested structure, but so far without values. Next step will be to import  values as well :-).

   Joerg


Jörg Werner commented Feb 06 '14, 4:02 a.m.

Examples:
categorytype01.xml:

<?xml version="1.0" encoding="utf-8"?><categoryType xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/">   <dc:title>Country</dc:title>   <scope>TestCase</scope>   <required>false</required>   <multiSelectable>false</multiSelectable></categoryType>


categorytype02.xml:
<?xml version="1.0" encoding="utf-8"?><categoryType xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/">   <dc:title>City</dc:title>   <scope>TestCase</scope>   <required>false</required>   <multiSelectable>false</multiSelectable>   <dependsOn href="./categorytype01.xml"/></categoryType>








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.