Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Reportable Rest API to return only 2 specific custom fields

Hello All,


We need to fetch 2 custom fields from ibm rtc so I tried to access that using belows urls:


Above url return only Test2 custom field

and 


Above url returns all custom fields.

But How to get only 2 custom fields using reportable api.

Thanks and Regards
Pallavi Deore

0 votes

Comments
I would try to change the filter in the allExtensions or even in the results e.g. something along the lines of 
[key='Test1' or key='Test2']

e.g. 


Check the examples at the bottom for how the selection/filters work.


Accepted answer

Permanent link

 You can use or in the filter to include more than one custom attribute.


You can use the following:
https://<server>:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=12460]/(id|summary|type/name|allExtensions[key='Test1' or key='Test2']/(key|displayName|displayValue|itemValue))

Alternately, you can use
https://<server>:9443/ccm/rpt/repository/workitem/workItem/id/12460?fields=workitem/workItem/(id|summary|type/name|allExtensions[key='Test1' or key='Test2']/(key|displayName|displayValue|itemValue))

Pallavi Deore selected this answer as the correct answer

0 votes

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,973

Question asked: Jun 13 '22, 8:42 a.m.

Question was seen: 910 times

Last updated: Jun 13 '22, 2:43 p.m.

Confirmation Cancel Confirm