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.
|
Accepted answer
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
|
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.