It's all about the answers!

Ask a question

RTC OSLC Rest API - is creating a query using enumeration list attribute possible?


Sian O'Briain (35921) | asked Sep 22 '15, 6:35 a.m.
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



permanent link
Donald Nong (14.5k414) | answered Sep 29 '15, 12:12 a.m.
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

permanent link
Alain robert (1156) | answered Mar 20 '16, 4:22 a.m.
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

permanent link
Sian O'Briain (35921) | answered Mar 24 '16, 7:39 a.m.
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


Register or 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.