How to get associate category with Project Area using server side Java APIs?
2 answers
com.ibm.team.workitem.common.IWorkItemCommon has a bunch of ICategory/ICategoryHandle related methods and is available in the client and the server API.
E.g. com.ibm.team.workitem.common.IWorkItemCommon.findAllCategories(IProjectAreaHandle, ItemProfile<ICategory>, IProgressMonitor)
Comments
I don't understand the point you are trying to make in item 2. The explanation is lacking. If you want to work with the filed against, then you get the value handle attribute (using com.ibm.team.workitem.common.model.IWorkItem.getValue(IAttribute)) and then use IWorkitemCommon to explore the ICategory Handle you get. E.g. using com.ibm.team.workitem.common.IWorkItemCommon.resolveHierarchicalName(ICategoryHandle, IProgressMonitor) or whatever appropriate method on IWorkItemCommon.