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

how to get the owner(icontributorHandle) by the owner's name

i'm writing a query to get the workitems that belong to a specified owner. And i only know the name of the owner.
the following is the way that i get the query expression:

ownerAttribute= findAttribute(projectArea, auditableClient, IWorkItem.OWNER_PROPERTY, monitor);
ownerExpression= new AttributeExpression(ownerAttribute, AttributeOperation.EQUALS, owner_name);

However,it doesn't work,and i wonder that is because of the attribute owner_name is String ,while i need a IContributeHandle, is that right?
if it is ,how can i get this just by the name of the handle.
I appreciate your help.

0 votes



One answer

Permanent link
 Not sure if you are still looking for this, but here is a way to get handle : 
(IContributorHandle) owner.getItemHandle();

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

Question asked: Aug 02 '10, 2:24 a.m.

Question was seen: 5,203 times

Last updated: Aug 21 '12, 10:39 a.m.

Confirmation Cancel Confirm