It's all about the answers!

Ask a question

How to Query WorkItem using AttributeOperation.CONTAINS with IWorkItem.ID_PROPERTY?

pugazhenthi samidurai (26423742) | asked Feb 27 '13, 3:44 a.m.
i am using the following query to fetch the work item. But it always returns empty result set. when i replacing CONSTAINS with EQUALS it return's exact result.

IQueryableAttribute wiidattribute = factory.findAttribute(projectArea, IWorkItem.ID_PROPERTY, auditableClient, null);

Expression wiidexpression = new AttributeExpression(wiidattribute, AttributeOperation.CONTAINS, id);

Let me know , is it possible to query the work items with ID property having CONTAINS in condition.

Thanks ,

Pugazh S

Be the first one to answer this question!

Register or to post your answer.