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

How do I get the IContibutor/IContributorHandle of the creator of a changeset using the API?

How do I get the IContibutor/IContributorHandle of the creator of a changeset using the API?  The author property is never set and the .getAuthor() method always returns null.  I need the owner/author of the changeset.

0 votes


Accepted answer

Permanent link
I was using:

IChangeSet changeSet = scmChangeset.getSnapshotChangeset((IChangeSetHandle) changeSetHandle);

to get the IChangeSet and this interface does not set author/modifiedBy.  Switched to:

IChangeSet changeSet = (IChangeSet) repo.itemManager().fetchCompleteState(changeSetHandle,null);

which provides all properties.
Ralph Schoon selected this answer as the correct answer

0 votes

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,938

Question asked: Sep 04 '14, 2:33 a.m.

Question was seen: 2,859 times

Last updated: Sep 04 '14, 3:25 p.m.

Confirmation Cancel Confirm