It's all about the answers!

Ask a question

How to develop RTC rest API


Avinash Bamane (20115) | asked Nov 30 '15, 4:37 a.m.
Hello,
I want to develop RTC rest API. Can anyone please redirect me to correct link to start for this?
Thanks in advance.

Comments
sam detweiler commented Nov 30 '15, 7:17 a.m.

what do you want to do with this API?


Avinash Bamane commented 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 commented Nov 30 '15, 7:26 a.m.

the existing REST api for workitem access doesn't give you what you need?


Avinash Bamane commented 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.


One answer



permanent link
Avinash Bamane (20115) | answered Dec 01 '15, 1:37 a.m.
Hello,
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
Avinash Bamane commented Dec 01 '15, 1:52 a.m.

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


sam detweiler commented Dec 01 '15, 6:58 a.m.

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


Donald Nong commented Dec 02 '15, 12:48 a.m.

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.


Avinash Bamane commented Dec 02 '15, 12:59 a.m.

Hello Donald,
Thanks for the reply. Yes, I was looking for the same. It works for comment. What about 'customAttributes'?
Thanks.


Donald Nong commented Dec 02 '15, 1:07 a.m.

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.


Avinash Bamane commented Dec 02 '15, 1:16 a.m.

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.


Donald Nong commented Dec 06 '15, 6:13 p.m.

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/


sam detweiler commented Dec 08 '15, 7:57 a.m.

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

showing 5 of 8 show 3 more comments

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.