Updating Custom Attribute Values in TestPlan-TestCase via OSLC
Based on this comment in the RQM API:
PUT (create/update) requests now require an external ID. PUT (create/update) requests without an external ID will return 400 (Bad Request). As an alternative, use POST (create only) requests, which do not require an external ID. For more information, see Usage Basics.
How do you update a Testplan that was created internally and has no external ID?
I have tried using the internal ID anyway, and it doesn't work. I have also tried a POST which doesn't work, because as it says above POST is only for create.
Accepted answer
You will need a URL like this
Replace <server>, <port>, <project> and <internalID> with the actual one.
For example, I PUT this
https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testplan/urn:com.ibm.rqm:testplan:<internalID>https://jazz.net/library/article/1376
Replace <server>, <port>, <project> and <internalID> with the actual one.
For example, I PUT this
<?xml version="1.0" encoding="UTF-8"?><ns4:testplan xmlns:ns4="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/elements/1.1/" xmlns:ns7="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://purl.org/dc/terms/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform"><com.ibm.rqm.planning.editor.section.planBusinessObjectives xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TP-BUSS-OBJ-TITLE"><div xmlns="http://www.w3.org/1999/xhtml">This is to show the PUT method</div></com.ibm.rqm.planning.editor.section.planBusinessObjectives></ns4:testplan>to
https://<server>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE Banking (Quality Management)/testplan/urn:com.ibm.rqm:testplan:7to update the Business Objectives of an existing test plan.