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

RQM: Rest api - get collections/requirementset

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

0 votes


Accepted answer

Permanent link
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

1 vote

Comments

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 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
× 12,020

Question asked: Dec 21 '15, 5:11 a.m.

Question was seen: 1,792 times

Last updated: Dec 22 '15, 5:16 a.m.

Confirmation Cancel Confirm