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

how to get the owner attributor from a user id

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 ?

0 votes



One answer

Permanent link
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);

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

Question asked: Oct 29 '11, 4:56 a.m.

Question was seen: 4,052 times

Last updated: Oct 29 '11, 4:56 a.m.

Confirmation Cancel Confirm