It's all about the answers!

Ask a question

Querying custom attribute of type contributor via oslc

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"]"&,dcterms:title,,{dcterms:contributor}

All is working fine except the last select attribute which is "".

I am getting the following output of it


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

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.