Getting total number of change sets for a project area
I need a way to to collect the number of Workitems and change sets a project has in java. I am using the following to get the total number of workitems which works fine:
"/oslc/contexts/projectUuid/workitems.xml?oslc_cm.properties=" I'm struggling a bit to figure out how to get the number of change sets. Is there a query or API I can use to get the # of change sets? |
6 answers
I need a way to to collect the number of Workitems and change sets a project has in java. I am using the following to get the total number of workitems which works fine: I'm still struggling with this. I've written the following and I get an ArrayStoreException when trying to get the change set history. IWorkspaceSearchCriteria wsSearchCriteria = WorkspaceSearchCriteria.FACTORY.newInstance(); Any help would be greatly appreciated. I've only been able to see the apis with no documentation along with it and searching the forums for any clues to how to write to the RTC api. |
I went a different route and used the webservice to get the number of changesets.
Once I get the workspace stream, I use this url to get the components: https:// That returns a json which you can parse to get the component ids in the stream. I then use the following url to get the changesets: https:// |
I want to get a all the baselines for a specifc project in the stream. I can connect to the strea, but I can't get the baseline for that project.
|
Geoffrey Clemm (30.1k●3●30●35)
| answered Oct 22 '10, 7:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The scope of a baseline is a component, not a "project".
What did you have in mind for a "project"? An RTC project area? An Eclipse project? Something else? Cheers, Geoff On 10/21/2010 9:38 AM, kabeval wrote: I want to get a all the baselines for a specifc project in the stream. |
I want to get the files that are in the stream for a particular beaseline for a particule project area. I can get to the a particular beaseline from my local repository, but not from the stream.
The scope of a baseline is a component, not a "project". I want to get a all the baselines for a specifc project in the stream. |
We are adding support for Rational Team Concert 3. The WebService method to get the number of Changesets doesn't work. I get a 400 error code. So far haven't been able to figure out what parameters have changed.
This brought me to revisit using the IWorkspaceConnection.changeSetsInHistory(List, IProgressMonitor) to get the changesets. I get an ArrayStore exception because I don't know what the list this method requires should contain.
Can anybody tell me what the list should contain for the changeSetsInHistory method? I've tried IWorkspaceHandle, IWorkspace, and the list returned from IWorkspaceConnection.getComponents. Or if anybody as an idea on what has changed for the Webservice for RTC3, that would be helpful too. |
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.