How to use JAVA API to query work item by tags
Accepted answer
Have you tried?
IQueryableAttribute attribute = QueryableAttributes.getFactory(
IWorkItem.ITEM_TYPE).findAttribute(projectArea,
IWorkItem.TAGS_PROPERTY, auditableCommon, monitor);
In general you could also call an existing query like described here: https://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ that avoids to expose yourself too much to the API.
IQueryableAttribute attribute = QueryableAttributes.getFactory(
IWorkItem.ITEM_TYPE).findAttribute(projectArea,
IWorkItem.TAGS_PROPERTY, auditableCommon, monitor);
In general you could also call an existing query like described here: https://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ that avoids to expose yourself too much to the API.