It's all about the answers!

Ask a question

How to filter workitems by extension field value using REST?


yevsh shhshs (113) | asked Aug 16 '17, 4:30 a.m.
edited Aug 16 '17, 7:27 a.m.

  How Can I filter workitems by extension field value using REST?

 
 I am able to get it as field, e.g.


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.


Comments
Rafik Jaouani commented Aug 16 '17, 11:06 a.m.
JAZZ DEVELOPER

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.

One answer



permanent link
Rafik Jaouani (5.0k16) | answered Aug 16 '17, 8:54 a.m.
JAZZ DEVELOPER

Comments
yevsh shhshs commented Aug 16 '17, 9:03 a.m. | edited Aug 16 '17, 9:05 a.m.

this should be working live example?

Anyway based on above, it won't filter out the workitem.

I want to get  all wotkitems that have specific extensionkey and specific extension item.


SO this filter should come in section /workitem[<here>]

Your answer


Register or 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.