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. |
One answer
Not sure if you are still looking for this, but here is a way to get handle :
(IContributorHandle) owner.getItemHandle(); |
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.