Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I update a testcase custom attribute using REST API?

 CLM 5.0.1

I've tried the next URL with the PUT command:

Custom attribute name = copyFromID

https://<CLMServer>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectAreaName>/testcase/urn:com.ibm.rqm:testcase:11578?copyFromID=11578

Would appreciate your assistance,
Liora

0 votes



One answer

Permanent link
Hi Liorna,

You need to PUT the testcase XML (see https://jazz.net/wiki/bin/view/Main/RqmApi#Update) with the custom attributes.

0 votes

Comments

What is the XML representation of this attribute for a specific testcase? This is something I can't figure out.

Paul,


I appreciate your assistance.  The documentation is somewhat unclear to newbies like myself. Could you give me an example to how this is done?

Hi Liora,

You would GET the testcase XML, add the custom attribute(s), and PUT the testcase XML.  The https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip and the RQM XML schema documentation (https://jazz.net/wiki/bin/view/Main/RqmApi#Detailed_Schema_Documentation) are required to determine the XML representation of the custom attribute(s). 

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
× 10,941

Question asked: Oct 23 '14, 5:33 a.m.

Question was seen: 4,248 times

Last updated: Oct 29 '14, 6:49 a.m.

Confirmation Cancel Confirm