How to filter work item by state name using Reportable REST API
How to filter work item by state name using Reportable REST API
So far, I have only been able to filter by the State id:
https:// <server>:<port>/ccm/rpt/repository/workitem?fields=workitem/workItem[state/name='Approved']/(id|state/name)
Is there different syntax I can use to query by State name? If not, once the States are defined for a work item type, will the id's always be static at that point?
Accepted answer
As the error message says, state/name is not queryable, so you can't filter on it. The state IDs are static, so you could filter on that instead.
Comments
1 vote
Comments
Michael Taylor
Jun 24 '13, 1:21 p.m.Michael Taylor
Jun 24 '13, 1:22 p.m.Michael Taylor
Jun 24 '13, 1:23 p.m.Michael Taylor
Jun 24 '13, 1:26 p.m.