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

How to compare against nested attribute with REST OSLC query

Hi.  I'm using the REST OSLC API (described at https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2) to issue a query of change records, but I only want change records where the parent has an attribute equal to a certain value.  I tried the following, but it doesn't work:
  dc:type="com.ibm.stg.workItemType.changeRecord" and 
  rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent{rtc_cm:com.ibm.stg.attribute.environmentFoundIn}="CUST" 
and dc:created>="2013-04-01T00:00:00.000Z" and dc:created<="2013-04-30T23:59:59.999Z"
Although I can use the brace syntax to request a certain parent attribute as a return property of the query, I don't seem to be able to use that syntax in the query itself to check a parent attribute.  Is there another way to accomplish this?  The web page query interface supports this kind of nested checking, so I'm hoping that the REST API does too.

Thanks.

0 votes



One answer

Permanent link
 Hello James,

In OSLC - I think you need to fetch the parent - if any - and retrieve the information from there.

Hope it helps.
Eric.

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
× 12,019
× 516
× 137

Question asked: Jun 06 '13, 3:23 p.m.

Question was seen: 6,184 times

Last updated: Jun 07 '13, 4:56 a.m.

Confirmation Cancel Confirm