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

How to develop RTC rest API

Hello,
I want to develop RTC rest API. Can anyone please redirect me to correct link to start for this?
Thanks in advance.

0 votes

Comments

what do you want to do with this API?

Hello Sam,
I want to fetch data from Workitems and need to store it in another Warehouse for further data operations.
Thanks

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

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.

1 vote



One answer

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

0 votes

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

showing 5 of 8 show 3 more comments

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

Question asked: Nov 30 '15, 4:37 a.m.

Question was seen: 4,023 times

Last updated: Dec 08 '15, 7:57 a.m.

Confirmation Cancel Confirm