RTC Plain Java API search Work item by Description
Hi
What I am trying to do search work item by description .
I can search using tags,summary and type but I cant search using description or other terms.
The code i am using is listed below
IQueryableAttribute typeTag = QueryableAttributes.getFactory( IWorkItem.ITEM_TYPE).findAttribute(projectArea,
IWorkItem.TAGS_PROPERTY, auditableCommon, progressMonitor);
Expression tagExpression = new AttributeExpression(typeTag,AttributeOperation.CONTAINS,tagID);
typeinProjectArea.add(tagExpression);
resultsQuery= queryClient.getResolvedExpressionResults(projectArea, typeinProjectArea, IWorkItem.FULL_PROFILE);
Any kind of suggestion will be appreciated
Thanks
Kishan
What I am trying to do search work item by description .
I can search using tags,summary and type but I cant search using description or other terms.
The code i am using is listed below
IQueryableAttribute typeTag = QueryableAttributes.getFactory( IWorkItem.ITEM_TYPE).findAttribute(projectArea,
IWorkItem.TAGS_PROPERTY, auditableCommon, progressMonitor);
Expression tagExpression = new AttributeExpression(typeTag,AttributeOperation.CONTAINS,tagID);
typeinProjectArea.add(tagExpression);
resultsQuery= queryClient.getResolvedExpressionResults(projectArea, typeinProjectArea, IWorkItem.FULL_PROFILE);
Any kind of suggestion will be appreciated
Thanks
Kishan
One answer
thats because any of the 'LARGE' (string/html) fields do not support the 'contains' operation. They can only be searched using the text search functions (I've never used them myself)
Description is defined as LargeHTML type field
Description is defined as LargeHTML type field