It's all about the answers!

Ask a question

RTC Plain Java API search Work item by Description

kishan adhi (44279) | asked May 06 '13, 4:21 p.m.
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);
   resultsQuery= queryClient.getResolvedExpressionResults(projectArea, typeinProjectArea, IWorkItem.FULL_PROFILE);

Any kind of suggestion will be appreciated

One answer

permanent link
sam detweiler (12.5k6194201) | answered May 07 '13, 7:35 a.m.
edited May 07 '13, 7:36 a.m.
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

kishan adhi commented May 07 '13, 9:13 a.m.

Hi Sam,
where can I find more information regarding this .
I understood what you told but couldn't implement this so any suggestion would be great


sam detweiler commented May 07 '13, 2:09 p.m.

see this topic

he starting point for your task is probably:

You can get the client library by using
ITeamRepository repository=...
IFullTextClientLibrary library= (IFullTextClientLibrary)

The JavaDoc for IFullTextClientLibrary contains further references.


I don't see anything in the Javadoc for these functions

Your answer

Register or to post your answer.