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

Get Component History Programmatically - RTC 4.02

Hi all, 
Can i get component history or last change date?
Is that possible? And, if possible how can i do it? Which way?

0 votes


Accepted answer

Permanent link
Hi Hakki,

the IChangeHistory and IChangeHistoryDescriptor interfaces may help.  An IChangeHistory is associated with a component.

...
IWorkspaceConnection ws = ...
IChangeHistory changeHistory = ws.changeHistory(component);
        while( changeHistory != null )
        {
            IChangeHistoryDescriptor d = changeHistory.getHistoryDescriptor(true, null);
            changeHistory = d.previousHistory();
        }
...


Ralph Schoon selected this answer as the correct answer

2 votes

Comments

Hi Sonia,

Thanks for a good answer. I guess, I was looking it.

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
× 10,936
× 1,202
× 233

Question asked: Feb 04 '14, 4:24 a.m.

Question was seen: 5,528 times

Last updated: Feb 20 '14, 2:11 a.m.

Confirmation Cancel Confirm