It's all about the answers!

Ask a question

RTC attributes OSLC URI/URLs


0
1
Amit Garg (311949) | asked Feb 20 '17, 6:02 a.m.

 We are using RTC 6.0.2 and want a list of all the values for the following attributes using OSLC URI:


Filed Against
Planned For
Found In 

This will enable us to modify or update these attributes using java script.


Comments
Donald Nong commented Feb 20 '17, 6:51 p.m.

What exactly are you asking for? Do you want to use Java or JavaScript? Are you going to use OSLC (which usually does not involve JavaScript)? Do you want to get the ID/URI of the attributes, or the existing values of these attributes? Please explain your use case in details.


Amit Garg commented Feb 21 '17, 1:03 a.m.

 Hi Donald,


I'm sorry, yes we want to use Java and not javascript. Yes, we'd be using OSLC. We want the URI for these attributes which can list all the values under specific attribute.

we are trying to update the team filed Against using java code for a workitem. where the {\"rtc_cm:filedAgainst\":{\"rdf:resource\":\"https://localhost:9999/ccm/resource/itemOid/com.ibm.team.workitem.Category/_xxxxxxxxxxxxxxxxx\"}} required an uri value (https://localhost:9999/ccm/resource/itemOid/com.ibm.team.workitem.Category/_xxxxxxxxxxxxxxxxx) to update for workitem from the the available list of teamfiledAgainst values in RTC. We are looking for an operation/URI where it will help us to know the complete list of URI for the available list of attribute values present in team filed against column.

One answer



permanent link
Donald Nong (14.5k414) | answered Feb 21 '17, 7:41 p.m.

I assume you're familiar with RTC OSLC API already. Otherwise, start with this article.
https://jazz.net/library/article/1001

In the Service Provider document of a given project area, you will have Creation Factory for each work item type. Within the Creation Factory, you should see a Resource Shape. Retrieve the Resource Shape and you should see all the attribute definitions and their allowed values. For enumerations, you need an extra step to get the literal value by accessing the Allowed Value resource.

Your answer


Register or 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.