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:
Thanks.
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"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.
and dc:created>="2013-04-01T00:00:00.000Z" and dc:created<="2013-04-30T23:59:59.999Z"
Thanks.
One answer
Hello James,
I guess you may achieve that using Java API - see sample here http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
In OSLC - I think you need to fetch the parent - if any - and retrieve the information from there.
Hope it helps.
Eric.