RQM: Assign subcategories with REST API
I have a root category "Country" with values "France" and "Germany"
and a subcategory "City" with values "Paris" and "Frankfurt"
This is automatically created via the REST API.
Know I want to assign a city to a country.
I try it with:
I get the error 500 - Internal server error
I think that the problem is that the categoryType City already exists.
Any idea how the script must look like?
thanks, jörg
and a subcategory "City" with values "Paris" and "Frankfurt"
This is automatically created via the REST API.
Know I want to assign a city to a country.
I try it with:
<?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="https://rb-alm-03-t5.de.bosch.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/categoryType/categoryType_md5_6522124c6fbd791c09cec4c4e096461f_"/>
<valueset>
<key href="https://rb-alm-03-t5.de.bosch.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/category/category_md5_79f6d480befafa8e7c2a3cd1b6db98b6_"/>
<value href="https://rb-alm-03-t5.de.bosch.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/category/category_md5_e3fb375fcd32aeef522afb6f57ecb5f0_"/>
</valueset>
</categoryType>
I get the error 500 - Internal server error
I think that the problem is that the categoryType City already exists.
Any idea how the script must look like?
thanks, jörg
One answer
Here is an example
<?xml version="1.0" encoding="UTF-8"?>
<ns2:categoryType xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://open-services.net/ns/core#" xmlns:ns14="http://open-services.net/ns/qm#" xmlns:ns15="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns19="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns20="http://www.w3.org/1999/XSL/Transform">
<ns2:projectArea href="https://subhajitbhuiya:9444/jazz/resource/itemOid/com.ibm.team.process.ProjectArea/_eguiYBWoEeWhIOsf5xqOcg" alias="Quality+Manager"/>
<ns4:identifier>https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/categoryType/urn:com.ibm.rqm:categoryType:_v8TtkBjLEeWtst8qsD7oQg</ns4:identifier>
<ns6:updated>2015-06-22T10:45:07.337Z</ns6:updated>
<ns4:title>City</ns4:title>
<ns2:scope>TestCase</ns2:scope>
<ns2:required>false</ns2:required>
<ns2:multiSelectable>false</ns2:multiSelectable>
<ns2:dependsOn href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/categoryType/urn:com.ibm.rqm:categoryType:_v1HgcBjLEeWtst8qsD7oQg"/>
<ns2:valueset>
<ns2:key href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v72akRjLEeWtst8qsD7oQg"/>
<ns2:value href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v9NsgRjLEeWtst8qsD7oQg"/>
</ns2:valueset>
<ns2:valueset>
<ns2:key href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v-xLsRjLEeWtst8qsD7oQg"/>
<ns2:value href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v-8x4RjLEeWtst8qsD7oQg"/>
</ns2:valueset>
</ns2:categoryType>
<?xml version="1.0" encoding="UTF-8"?>
<ns2:categoryType xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://open-services.net/ns/core#" xmlns:ns14="http://open-services.net/ns/qm#" xmlns:ns15="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns19="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns20="http://www.w3.org/1999/XSL/Transform">
<ns2:projectArea href="https://subhajitbhuiya:9444/jazz/resource/itemOid/com.ibm.team.process.ProjectArea/_eguiYBWoEeWhIOsf5xqOcg" alias="Quality+Manager"/>
<ns4:identifier>https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/categoryType/urn:com.ibm.rqm:categoryType:_v8TtkBjLEeWtst8qsD7oQg</ns4:identifier>
<ns6:updated>2015-06-22T10:45:07.337Z</ns6:updated>
<ns4:title>City</ns4:title>
<ns2:scope>TestCase</ns2:scope>
<ns2:required>false</ns2:required>
<ns2:multiSelectable>false</ns2:multiSelectable>
<ns2:dependsOn href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/categoryType/urn:com.ibm.rqm:categoryType:_v1HgcBjLEeWtst8qsD7oQg"/>
<ns2:valueset>
<ns2:key href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v72akRjLEeWtst8qsD7oQg"/>
<ns2:value href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v9NsgRjLEeWtst8qsD7oQg"/>
</ns2:valueset>
<ns2:valueset>
<ns2:key href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v-xLsRjLEeWtst8qsD7oQg"/>
<ns2:value href="https://subhajitbhuiya:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/category/urn:com.ibm.rqm:category:_v-8x4RjLEeWtst8qsD7oQg"/>
</ns2:valueset>
</ns2:categoryType>