It's all about the answers!

Ask a question

Need to get filename and revision from changeset from workitem id

JJ Chen (111) | asked May 05 '15, 10:01 p.m.

I need to get filename and revision of all the changesets from a workitem in attribute customization.
I have read through, but I am still not sure which direction to take to start on this.

I am wonder if it's possible to make a rest call to an RTC API which will get me these values.  If so, which API should I call?  I have tried this to call this https://localhost:9444/ccm/resource/itemName/, but it doesn't have the value I wanted. 

If this can only be done in JAVA, how do I pass value to the javascript side to display the value? And which class will give me the filenames and revision?

Thanks in advance

One answer

permanent link
Donald Nong (14.5k314) | answered May 06 '15, 12:56 a.m.
You can't do it with JavaScript, or OSLC.
But it appears that you can make a "REST" call to retrieve such information.
(Note that it's not published APIs and you need to figure out by yourself).
If using Java, you should be able to find similar topics on this forum, such as this one.
There are other great references, blogs and web pages which you can find by doing simple Google search.

Your answer

Register or to post your answer.