It's all about the answers!

Ask a question

How to filter on workitem for id and type/id in REST API?


Andrew Ciaz (494) | asked Sep 30 '19, 2:54 a.m.

 Hi all I want to fetch workitems with ids and I want to filter on these workitems for type. If I use below REST query then it returns all the workitems with matching type, but I want to apply filter on given list of workitems, Please suggest the solution, below is my query:


https://d-9392:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=580 and type/id='com.ibm.team.apt.workItemType.story' or type/id='task' or type/id='com.ibm.team.workitem.workItemType.task' or type/id='com.ibm.team.workitem.workItemType.feature' ]/(summary|id|target/name|teamArea/name|state/name|owner/name|type/name)

Be the first one to answer this question!


Register or to post your answer.