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

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 ?
    

0 votes


Accepted answer

Permanent link

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.

Jayasankar BVR selected this answer as the correct answer

0 votes

Comments
  Thanks Subramanya, this works, Can you also tell me how to get the unique set of targets which are linked to a specific project.

https://server:port/ccm/rpt/repository/workitem?fields=workitem/workItem[projectArea/name='JKE Banking (Change Management)']/target/name will return target attributes that have one or more WorkItems assigned to them.


One other answer

Permanent link

 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 ?

0 votes

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
× 1,738

Question asked: Aug 10 '17, 4:08 p.m.

Question was seen: 5,483 times

Last updated: Aug 11 '17, 8:11 a.m.

Confirmation Cancel Confirm