RTC OSLC Rest API - is creating a query using enumeration list attribute possible?
e.g.
https://rtc:9443/ccm/oslc/contexts/proj_uuid/workitems?oslc.where=rtc_cm:custom.attribute{dc:title="Yes"}&oslc.select=rtc_cm:custom.attribute{dc:title} above returns all work items, not just the ones where this attribute equals 'yes'. I understand that it is a collection (depicted as checkboxes in our editor) so the custom attribute in this case can have multiple values Is this task achievable? Thanks |
3 answers
Similar to your other post, it's not about the collection nature of the attribute, but rather the support for partial representation when searching.
https://jazz.net/forum/questions/207467/oslc-2-query-to-search-by-plannedfor-title?page=1&focusedAnswerId=207503#207503 |
Have you been able to query on an enumerated list?
I am using oslc_cm.query=rtc_cm:Affected_Versions_EL=%22*8.5*%22&oslc_cm.properties=dc:identifier with no success it is working fine when the attribute is not a list ... Thanks |
try using the ID of the literal
e.g. oslc_cm.query=oslc_cm:severity=%22severity.literal.l4%22 I would also look into using oslc core version 2.0 and the oslc.where parameter Comments
Sian O'Briain
commented Mar 24 '16, 7:39 a.m.
also forgot to ask is this an enumeration list attribute i.e multiple choice?
|
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.