It's all about the answers!

Ask a question

API to GET information of all files checked in RTC Eclipse Client into a Stream, based on datetime.


Debayan De (134) | asked Sep 13 '21, 1:01 a.m.

 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)
Is there any REST api or any other form of API which I can use to GET all the above mentioned information from EWM v7.0.2 for a particular ccm Project?

2 answers



permanent link
Ralph Schoon (63.5k33646) | 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,
I have created a working EWM 7.0.2 development environment, and in the above mentioned link for ewm-scm-utils I cannot seem to find the ' SCMUtils.bat' file which is required to run it. Could you specify the directory where I may find it ?

Thanks.


Ralph Schoon commented Sep 16 '21, 5:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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


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.

Ralph Schoon commented Sep 16 '21, 6:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


-1
permanent link
Elwyn Bogan (91) | answered Sep 17 '21, 12:50 a.m.
edited Sep 20 '21, 1:00 a.m.

 Rational Team Concert source control is a component-based version control system that is built on the Jazz platform. You can use Rational Team Concert .



Comments
Ralph Schoon commented Sep 17 '21, 2:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

And how does this contribute to the question? 

Your answer


Register or 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.