API to GET information of all files checked in RTC Eclipse Client into a Stream, based on datetime.
I am developing a RTC Connector where I need the information like file Content (lines of code, method names, etc. from code files), build version information, file Name, file Path, Stream Name, List of Change Set Ids, check-in User name, last Modified / Creation datetime of the files, Repository workspace name, of all the files which the user checked in via the RTC Eclipse Client, based on some datetime range. (Lets say I want to get all the above mentioned information for the check-ins done from the 1st of this month)
|
2 answers
Ralph Schoon (63.5k●3●36●46)
| answered Sep 14 '21, 6:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I would suggest to look into the EWM SDK and the Plain Java Client Libraries. See https://rsjazz.wordpress.com/2021/04/23/the-rtc-extensions-workshop-has-been-updated-for-ewm-7-0-x/ as an entry point. Perform at least lab 1 of the Extensions Workshop to get a working development environment.
The blog hosting that link has more example code that you could check. More code can be found in the Jazz Community https://github.com/jazz-community . As an example https://github.com/jazz-community/ewm-scm-utils contains more examples for the SCM API. There are additional projects that might be useful e.g. https://github.com/jazz-community/work-item-command-line with a lot of example code around work items.
You will have to iterate the API to retrieve the information you mention above.
Comments
Debayan De
commented Sep 16 '21, 3:07 a.m.
Hi Ralph,
Hi, The batch file is actually only needed if you deploy it. The batch file can be found in https://github.com/jazz-community/ewm-scm-utils/tree/master/com.ibm.js.team.scm.supporttools/scripts
See https://github.com/jazz-community/ewm-scm-utils/blob/master/com.ibm.js.team.scm.supporttools/ReadMe%20-%20HowToRelease.txt how to create the released version. You can find pre build released versions here: https://github.com/jazz-community/ewm-scm-utils/releases
If you import the project and build it locally in your development environment based on the server development workspace, you can also use the debug and run launches I ship. E.g. in the Java perspective click at the run button and explore the existing configurations to run or debug, rather than using the batch file.
The best way to import the data is to clone to a local repository. In Eclipse, open the GIT perspective, connect to the local repository. Then import the projects from the local repository.
|
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.