Query TestCase by title using RQM Reportable REST API
![](http://jazz.net/_images/myphoto/ffce1abd9220e4d2ee87df91d9fd0538.jpg)
I'm just getting started with the Reportable REST API, and I can't seem to find a clear example of how to query all TestCases in a Project Area by Title.
https://<MyRqmURL>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CORPORATE_Strategic_Priority/testcase?fields=feed/entry/content/testcase[title="<my title>"]</pre> <div> Is this correct? </div> <div> <br> </div> <div> This returns with an HTTP Code 200, and the XML response contains the following: </div> <div> <br> </div> <pre>
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">testcase ATOM feed for project area CORPORATE_Strategic_Priority</title><id>https://<MyRqmURL>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CORPORATE_Strategic_Priority/testcase</id><link href="https://<MyRqmURL>/web/console/" rel="alternate"/><link rel="self" href="https://<MyRqmURL>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CORPORATE_Strategic_Priority/testcase?fields=feed%2Fentry%2Fcontent%2Ftestcase%5Btitle%3D%22BDD%3AThis+is+a+Test+Case-12345%22%5D"/></feed>
</pre>
One answer
![](http://jazz.net/_images/myphoto/ffce1abd9220e4d2ee87df91d9fd0538.jpg)
Hi, Jeff
I simply run something like
https://clm602:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM_ProjectArea/testcase?fields=feed/entry/content/testcase[title='test case 1']/*in browser and it return the test case named "test case 1".
If I run
https://clm602:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM_ProjectArea/testcase?fields=feed/entry/content/testcase[title='test case X']/description&wildcard=Xqm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM_TW/testcase?fields=feed/entry/content/testcase[title='test case X']/description&wildcard=X
it returns test case 1 and test case 2 (I only have two test cases starting from test case)
Comments
![](http://jazz.net/_images/myphoto/e9934ec615aada50693266f9882ab21f.jpg)
Hello,
https://SERVERNAME/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_0eWRwDc_EeeYe-w6pMegzw/testcase?fields=feed/entry/content/testcase[customAttributes/customAttribute/name="DO NOT UPDATE - Legacy TEST ID" and (customAttributes/customAttribute/value="ENG.2")]/
<feed>
<title type="text">testcase ATOM feed for project area HCC QA (QM)</title>
<id>
</id>
<link href= "https://SERVERNAME/qm/web/console/" rel="alternate"/>
</feed>
![](http://jazz.net/_images/myphoto/4f7f5d4590d1cd1dd90d026b208381d2.jpg)
Yes. I tried too. it fetches all the testcases but i would like to get the exact testcase having that custom attribute value.
Is there any way that we can filter out the test case using custom attribute value?
Thanks
![](http://jazz.net/_images/myphoto/0227396f4efb17d0baa0c12dd70df878.jpg)
Your request is definitely different from the OP. I suggest you open a new post.
Comments
Abhishek Kumar
Oct 12 '17, 9:57 a.m.I am also getting the same issue can someone help??
Donald Nong
Jul 27 '17, 6:03 a.m.It has been answered. Have you tried Don's method?