How to develop RTC rest API
One answer
Sam provided proper link to start for RTC REST API.
From above comment,
see
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.reports.doc/topics/r_ccm_rest_api.html&scope=null
Comments
Hello Sam,
I check this wiki. It helps me a lot to understand working of this REST API. I have some doubts. I tried for,
workitem/workItem[projectArea/name='Test' and modified > 2015-11-30T10:10:53.000-0500]/(id|comments)
Also I tried for customAttributes.
In both cases i received multiple tags for comments/customeAttributes. As mentioned in wiki, these may be objects. So, how to get values from these objects?
Thanks
I can only suggest to see the samples at the bottom ot
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Field_selection_and_filtering
and search jazz.net (google makes this easier.....
search terms site:jazz.net
you might also look at the OSLC rest api
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Query_Capabilities
If you meant to say how to retrieve the details of the properties such as "comments", then you need to expand it. For example, instead of (id|comments), you should use (id|comments/*), or (id|comments/content) if you are interested in only the comment content.
Hello Donald,
Thanks for the reply. Yes, I was looking for the same. It works for comment. What about 'customAttributes'?
Thanks.
It's similar. You use "customAttributes/*" to "expand" the property. Depending on what the custom properties really is, its content may not be easily understood.
yes, I tried with "customAttributes/*". Its working, but you are correct, its content is not easy to understand :)
Whatever I tried till now, using these REST APLI links, I tried it from browser. I want to do these activities from Java code. Can you point me to a link where can I find, how to write such Java API/code that will do login to server and will call these links.
I am searching for this, but didnt get any reference link yet.
Thanks.
The OSLC Workshop should be your starting point (don't use a RTC 6.0 server as it may not be supported).
https://jazz.net/library/article/635
You can also have a look at the Eclipse Lyo project.
http://www.eclipse.org/lyo/
also, here is a java pgm that uses the rest api to create a lifecycle project. the actual HTTP methods are not shown.
https://jazz.net/wiki/bin/view/Main/LPAAPIExampleClient
Comments
sam detweiler
Nov 30 '15, 7:17 a.m.what do you want to do with this API?
Avinash Bamane
Nov 30 '15, 7:19 a.m.Hello Sam,
I want to fetch data from Workitems and need to store it in another Warehouse for further data operations.
Thanks
sam detweiler
Nov 30 '15, 7:26 a.m.the existing REST api for workitem access doesn't give you what you need?
Avinash Bamane
Nov 30 '15, 7:55 a.m.Hello Sam,
Now, I am little bit confused. Can you please redirect to a link, where can I find what is supported by RTC REST API? Which details can I fetch and how? If its not possible to fetch all details then may be I can cut down my requirements and will fetch only possible data.
Thanks.
sam detweiler
Nov 30 '15, 11:47 a.m.see
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.reports.doc/topics/r_ccm_rest_api.html&scope=null
1 vote