Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get information about commits in SCM?

Hi there!

Please, I would like to know if is there a way to get information about commits in SCM such as: WHO DID (the commit), WHEN and WHAT WAS DONE? We are planning to search all the code in our scm looking for this information.

0 votes



One answer

Permanent link

Look at the history of the component to get those details. Is this question about how to get the details using the API?

0 votes

Comments
Thanks for your help.

We have a need to search all project areas that are using SCM, searching for those information. I think I have to use an API but I don't know which one. 

You can get all the project areas using the following API:
ITeamRepository repo;
IProcessItemService itemService = (IProcessItemService)repo.getClientLibrary(IProcessItemService.class);
List<IProjectArea> projectAreas = itemService.findAllProjectAreas(IProcessClientService.ALL_PROPERTIES, null);

To get a list of team areas:
List<ITeamArea> teamAreas = repo.itemManager().fetchPartialItems(projectArea.getTeamAreas(), IItemManager.DEFAULT,
                    Collections.singletonList(ITeamArea.NAME_PROPERTY_ID), null);

To get the history of a component, look at this forum link:

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 7,495
× 1,325

Question asked: Dec 01 '20, 12:39 p.m.

Question was seen: 1,408 times

Last updated: Dec 02 '20, 8:53 a.m.

Confirmation Cancel Confirm