It's all about the answers!

Ask a question

how to get the owner attributor from a user id


yansheng li (1175) | asked Oct 29 '11, 4:56 a.m.
Hi :

I want to set owner to a datatitem , but I do not know how to
get the attributor object from a user id . is there a way to get ?

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Oct 31 '11, 1:29 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

can you describe your use case a little bit more clearly?

What do you want to set, where, and when?

There is some attribute customization for default values that you could use in the process configuration.

Otherwise, in an adviser here some code that might be of interest.


IContributor aUser = fTeamRepository.contributorManager().fetchContributorByUserId(fContributorUserID, null);
IContributor loggedIn = fTeamRepository.loggedInContributor();
ArrayList<IContributorHandle> reviewers = new ArrayList<IContributorHandle>();
reviewers.add(loggedIn);
reviewers.add(aUser);

Your answer


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