Get IContributor from UUID
The goal is to get the name of IContributor from the UUID. But I get null with the next code:
String contributorUUID = "_zP_coJleEd-joaYjvz6g2w"
IContributorIdentity contributorIdentity = IContributorIdentity.FACTORY.create(UUID.valueOf(contributorUUID));
IContributorRecordHandle contributorRecordHandle = contributorService.fetchContributorRecordByIdentity(contributorIdentity);
IContributorRecord contributor = (IContributorRecord) contributorRecordHandle.getFullState();
The contributor exists because I have checked with: https://localhost:7443/jazz/resource/itemOid/com.ibm.team.scm.Component/_zP_coJleEd-joaYjvz6g2w?_mediaType=text/XML But contributor is always null. What is missing?
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Dec 15 '15, 6:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Try https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ search for UUID with the IContributor item type.
|
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.