Welcome to the Jazz Community Forum
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:
https://localhost:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=12460]/(id|summary|type/name|(allExtensions[key=%27Test1%27]/(displayName|displayValue|itemValue/))|(allExtensions[key=%27Test2%27]/(displayName|displayValue|itemValue/)))
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
Accepted answer

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))
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 13 '22, 10:01 a.m.