It's all about the answers!

Ask a question

How can I get the linked Requirements from a testcase


Susan Faber (1111) | asked Jul 11, 4:02 a.m.

I have retrieved the XML-representation of a testcase with REST-API. But in the xml-file i cannot see any reference to the "Linked Requirements".


How can I get the linked requirements? How should a REST-API call look like?

One answer



permanent link
Suad Kajtazovic (2611) | answered Aug 25, 2:43 p.m.
edited Aug 26, 6:55 a.m.

Try this:

https://[server:port]/qm/oslc_qm/contexts/[Project Area URI]/resources/com.ibm.rqm.planning.VersionedTestCase/[Test Case URI]?partialproperties=true&oslc_config.context=[Config URI]

and search for:
<oslc_qm:validatesRequirement

Headers:
Accept application/xml



Comments
Ralph Schoon commented Aug 26, 4:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please note that the API above is the Reportable REST API and not the OSLC API. The headers are documented here: https://jazz.net/wiki/bin/view/Main/RqmApi#Headers OSLC-Core-Version is not a supported header in this API. The Accept header value above is also incorrect (see the link above).


1
Suad Kajtazovic commented Aug 26, 6:59 a.m.

Thanks Ralph,
Agree, this is not an OSLC API call. Therefore the OSLC-header value is not required. 
Corrected.

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.