It's all about the answers!

Ask a question

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


Liora Milbaum (513289118) | asked Oct 23 '14, 5:33 a.m.
edited Oct 23 '14, 5:34 a.m.
 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

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Oct 24 '14, 10:32 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Oct 27 '14, 7:32 a.m.
Hi Liorna,

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

Comments
Liora Milbaum commented Oct 26 '14, 11:47 a.m.

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


Paul Slauenwhite commented Oct 27 '14, 7:32 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Liora Milbaum commented Oct 28 '14, 11:33 p.m.

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?


Paul Slauenwhite commented Oct 29 '14, 6:49 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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