It's all about the answers!

Ask a question

RQM: Rest api - get collections/requirementset


Jörg Werner (3033881) | asked Dec 21 '15, 5:11 a.m.
edited Dec 21 '15, 5:17 a.m.
Hi all,

I want to get the collections of a testplan via REST API

This works fine with the following URL:
<feedURL>?fields=feed/entry/content/testplan[title='Tp_demo']/*
	
	
As a result I get assigned collections, e.g.:
 <ns2:requirementset summary="SRS_demo: _QM_SW_test" rel="validates" href="https://my-dwa-server.com:8443/dwa/rm/urn:rational::1-4f5a2acf48e01698-M-000074a9/view:00000004"/>
	
	
But it seems not possible to use the ID of a test plan as filter.

If I use the URL (where I can specify the ID)
<feedURL>/urn:com.ibm.rqm:testplan:19
	
	
 I get more or less the same result but without requirmentset  (Id of 'Tp_Demo' is 19!)

I try also to add /* but so far I couldn't manage it.

My question is how to modify
        <feedURL>/urn:com.ibm.rqm:testplan:19

to get also the assigend requirementsets?

Any ideas?

  Thanks, jörg

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Dec 22 '15, 4:04 a.m.
You may need to append calmlinks=true or etlmode=true. See https://jazz.net/wiki/bin/view/Main/RqmApi#calmlinks and https://jazz.net/wiki/bin/view/Main/RqmApi#etlmode.
Jörg Werner selected this answer as the correct answer

Comments
Jörg Werner commented Dec 22 '15, 5:16 a.m.

Thanks!

Perfect:

<feedurl>/urn:com.ibm.rqm:testplan:19?calmlinks=true

also the following works:

<feedurl>/urn:com.ibm.rqm:testplan:19?fields=feed/entry/content/testplan/*
 Regards, Jörg

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.