It's all about the answers!

Ask a question

Querying custom attribute of type contributor via oslc


0
1
usman syed ali (1559) | asked May 05 '16, 10:14 a.m.
edited May 08 '16, 3:25 a.m.
 Hello everyone,

I am trying to get the name (Release Implementer Manager - Custom attribute) with the following query

https://server:port/ccm/oslc/contexts/_ZoC0QNS3EeGPlow7Bl9IAw/workitems?oslc.where=rtc_cm:state in ["ChangeRequestWorkFlow.state.s52"]"&oslc.select=dcterms:identifier,dcterms:title,rtc_ext:com.ibm.team.rtc.attribute.ncb.cr.dplendtime,rtc_ext:com.ibm.team.rtc.attribute.ncb.cr.relimpmgr{dcterms:contributor}

All is working fine except the last select attribute which is "com.ibm.team.rtc.attribute.ncb.cr.relimpmgr".

I am getting the following output of it

"rtc_ext:com.ibm.team.rtc.attribute.ncb.cr.relimpmgr":{"rdf:type":[{"rdf:resource":"http:\/\/xmlns.com\/foaf\/0.1\/Person"}],"rdf:about":"https:\/\/rtcdevsrv1:9443\/jts\/users\/116303"}

If you look at the above result I am able to get the user id "116303" of the release implementer manager but not his name. For reporting purposes, I would also like to fetch the name.

Need assistance in building the required query.

Thank You.

Accepted answer


permanent link
Donald Nong (14.5k314) | answered May 06 '16, 12:35 a.m.
Use {foaf:name}, not {dcterms:contributor}.

If you check the output of the contributor https://rtcdevsrv1:9443/jts/users/116303, you will see why.
usman syed ali selected this answer as the correct answer

Comments
usman syed ali commented May 08 '16, 3:30 a.m.

Thank you very much Donald for your usual help. I now understand the rationale behind it.

Your answer


Register or to post your answer.