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

Is there a way to filter a reportable REST URL by the value of a custom attribute?

workitem/workItem[stringExtensions/value="foo"]/id results in "Error 500: CRRED0135E: Illegal filter.  The field 'workitem/stringExtensions/value' may not be used in a filter because it returns multiple values."

Based on the discussion in 158711 I suspect the answer is no. 

I'm trying to create a document in RPE and I only want to include workitems that have a specific value set for a custom attribute.  Does anyone know of another approach I could take?

0 votes



2 answers

Permanent link
I did not find any way to do this via REST, so used a Condition Script Expression (key == "bar"  && value == "foo") in a nested query (under a workitem/workitem/stringExtensions query) within RPE to filter work items by a custom attribute key/value.

0 votes


Permanent link
Hi Brian,

I very interested by this Post.
I 'm not sure to understand the syntaxe of the query. Please, can you write an example of this type of query.

Thanks,

Antoine


0 votes

Comments

In RPE, you would create a query with a scripted filter (these are RPE terms and not REST API terms).  In my example it looks like this:



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
× 10,938
× 479
× 34

Question asked: Mar 02 '13, 2:42 p.m.

Question was seen: 9,119 times

Last updated: Jun 12 '13, 11:04 a.m.

Confirmation Cancel Confirm