Need to get filename and revision from changeset from workitem id
![]()
Hi,
I need to get filename and revision of all the changesets from a workitem in attribute customization.
I have read through https://jazz.net/wiki/bin/view/Main/AttributeCustomization, 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/com.ibm.team.workitem.WorkItem/281, 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
![]()
You can't do it with JavaScript, or OSLC.
https://jazz.net/forum/questions/131157/can-oslc-do-scm-operations
But it appears that you can make a "REST" call to retrieve such information.
https://jazz.net/forum/questions/134371/retrieving-modified-files-associated-with-change-set-in-rtc-via-oslc
(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.
https://jazz.net/forum/questions/38090/get-files-referred-in-a-change-set-via-rest-apis
There are other great references, blogs and web pages which you can find by doing simple Google search.
https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/
http://thescmlounge.blogspot.com.au/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html
|
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.