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

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.


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.

0 votes

Comments

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

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))

0 votes

Comments

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 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
× 7,495
× 479
× 137
× 72

Question asked: Aug 16 '17, 4:30 a.m.

Question was seen: 2,585 times

Last updated: Aug 16 '17, 11:06 a.m.

Confirmation Cancel Confirm