Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

RQM: How to created nested categories wirt REST API

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

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

Thanks, Paul,

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

   Joerg

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,040

Question asked: Feb 04 '14, 9:15 a.m.

Question was seen: 3,596 times

Last updated: Feb 06 '14, 4:02 a.m.

Confirmation Cancel Confirm