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

Querying custom attribute of type contributor via oslc

 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.

1

0 votes


Accepted answer

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

1 vote

Comments

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

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
× 10,927
× 515
× 60

Question asked: May 05 '16, 10:14 a.m.

Question was seen: 3,451 times

Last updated: May 08 '16, 3:30 a.m.

Confirmation Cancel Confirm