0

I am not able to apply filters to the defects list. Is there a way to get the filtered defects list using REST API ?

qcbin/rest/domains/{domain}/projects/{project}/defects/259

Above URL gives me details about the defect 259. How to get all defects having Status= {Assigned,Open,SIT-Ready,UAT-Ready,Rejected} and detected-in-rel = Sprint1

Manasa
  • 5
  • 1
  • 5

2 Answers2

0

Yes, you have to use query parameter into your URL.
Check Filtering Section of official docs for details

Sergi
  • 990
  • 5
  • 16
0

To complete Sergi's answer, with a query parameter it should look like that:

qcbin/rest/domains/{domain}/projects/{project}/defects?query=

Followed by your query url encoded.

In your case, regarding HP ALM format, your query is {Status[Assigned or Open or SIT-Ready or UAT-Ready or Rejected];detected-in-rel[Sprint1]}

Which gives, once url encoded:

qcbin/rest/domains/{domain}/projects/{project}/defects?query=%7BStatus%5BAssigned%20or%20Open%20or%20SIT-Ready%20or%20UAT-Ready%20or%20Rejected%5D%3Bdetected-in-rel%5BSprint1%5D%7D
Nanorex
  • 11
  • 1
  • 3