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

RQM: How to filter for scope='TestCase' for categoryTypes using REST?

Hello,

I would like to get all categoryTypes for TestCases via REST

The following URL will get a certain category for all test artifacts.

<IntegrationUrl>/resources/RQM_Import_Test/categoryType?fields=feed/entry/content/categoryType[title='City']/title

How can I filter for test cases. something like scope='TestCase' must be probably included in the URL, but what is the syntax? 'scope' itself is no filter property of categoryType.

   thanks, Joerg

0 votes


Accepted answer

Permanent link
 Hello Joerg, given below is the syntax which can be used to filter test cases by a category..

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase?fields=feed/entry/content/testcase/(title|description|category[@term='Function' and @value='Data entry'])

Best Regards, Sunil
Jörg Werner selected this answer as the correct answer

0 votes

Comments

Hi Sunil,

thanks. But I do not want filter test cases with a certain category.

I would like to get all defined category types for test cases in general.

<integrationurl>/resources/RQM_Import_Test/categoryType?fields=feed/entry/content/categoryType[title='City']/title

This url gets also CategoryTypes for test plans, test suites, ...
The 'scope' should be 'TestCase'.

  Regards, Jörg

categoryType doesn't suuport filtering on test case. Please refer to https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources

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,133

Question asked: Feb 17 '14, 3:26 a.m.

Question was seen: 6,178 times

Last updated: Feb 19 '14, 5:06 a.m.

Confirmation Cancel Confirm