How to filter workitems by extension field value using REST?
How Can I filter workitems by extension field value using REST?
I am able to get it as field, e.g.
https://xxxxxxx/workitem?fields=workitem/workItem[id=12]/(id|summary|stringExtensions[key='assignedTo']/(value))
But now I want to filter by value, some thing like:
I tried also:
fields=workitem/workItem[stringExtensions/key='assignedTo' ]
And got:
Error 500: CRRED0135E: Illegal filter.
The field 'workitem/stringExtensions/key' may not be used in a filter because it returns multiple values.
One answer
Here is an example:
https://jazz.net/jazz/rpt/repository/workitem?fields=workitem/workItem[id=12]/(id|summary|stringExtensions[key='com.ibm.team.workitem.rcp.core.platform' and value='PC1']/(key|value))
Comments
Rafik Jaouani
JAZZ DEVELOPER Aug 16 '17, 11:06 a.m.stringExtensions/key can be collection of values so filtering on it using = is not possible. The reportable rest API does not support what you are asking for.