It's all about the answers!

Ask a question

Instantiating a Jazz user


Luis Quintela (461812) | asked Dec 08 '08, 3:01 p.m.
JAZZ DEVELOPER
Hi, I'd like to programatically set the owner for a work item using the setOwner method in the IWorkItem interface.

This method takes an IContributorHandle as the input parameter.

How can I get the handle for the user given its name or id?

One answer



permanent link
Matt Lavin (2.7k2) | answered Dec 08 '08, 3:28 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
If you are trying to get the IContributorHandle from client side code,
you can use IContributorManager.fetchContributorByUserId

If you are trying to get the IContributorHandle from server side code,
you can use IContributorService.fetchContributorByUserId

-
Matt Lavin
Jazz Server Team


On Mon, 2008-12-08 at 20:07 +0000, lquintela wrote:
Hi, I'd like to programatically set the owner for a work item using
the setOwner method in the IWorkItem interface.

This method takes an IContributorHandle as the input parameter.

How can I get the handle for the user given its name or id?

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.