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

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

0 votes



3 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Comments

also forgot to ask is this an enumeration list attribute i.e multiple choice?

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
× 515
× 201
× 137

Question asked: Sep 22 '15, 6:35 a.m.

Question was seen: 4,802 times

Last updated: Mar 24 '16, 7:39 a.m.

Confirmation Cancel Confirm