I’ve tried using URL “rest-1.v1/Data/Defect?sel=Number&find=my-project-name&findin=Scope.Name” but this works for some projects and doesn’t for others.
I’d rather query this way then doing a multiple step query of:
- getting the OID for a scope
- listing all defects for that scope OID ; by using “rest-1.v1/Data/Scope/10001/Workitems:Defect”
- then querying each defect to see if it has the properties that I am searching for
You are correct about the project name - I previously used the find and findin syntax for a situation where I didn't know what project the defects were in (and was matching part of the field).
Thanks!