Why reportable REST is returning error Error 500: CRRED8022E: Non Queryable Field: type/name
https://jazz...:<port>/jazz/rpt/repository/workitem?fields=workitem/workItem[(target/name= '1.3.3.0' or target/name= '1.3.3.1') and type/name='STG Defect']/(id|creator/userId|owner/userId|type/|target/)
Error 500: CRRED8022E: Non Queryable Field: type/name
My requirement is to filter all the defects present in multiple sprints or targets.
Am I missing some thing ? pls throw some light ?
Accepted answer
Note that some properties/fields in RTC are NOT allowed in filters and that is why you get
Error 500: CRRED8022E: Non Queryable Field: type/name
type/name is one of them. You should see the same error if you use state/name='New' or severity/name='Major'.
The alternate solution is to use type/id instead of type name. That is, instead of type/name='Defect', use type/id='defect'. In your case, first check what is the type/id value for "STG Defect" and use it in the query.
Comments
One other answer
Same pblm even after changing the query little bit, https://jazz04.rchland.ibm.com:12443/jazz/rpt/repository/workitem?fields=workitem/workItem[(target/name= '1.3.3.0' or target/name= '1.3.3.1') and type/name='STG Defect']/(id|creator/userId|owner/userId)
If we remove target/name from the query condition, it works. But why is it not allowing to query with target/name ?