It's all about the answers!

Ask a question

Setting WorkItem Category


Gabriel Galvão (3179) | asked Apr 16 '12, 11:08 a.m.
Ok, so I know there is a method called setCategory

The thing is: where can I fetch the ICategoryHandle objects from?

One answer



permanent link
Gabriel Galvão (3179) | answered Apr 16 '12, 2:51 p.m.
Ok, so I know there is a method called setCategory

The thing is: where can I fetch the ICategoryHandle objects from?


You can fetch the categories using this:

IWorkItemServer workItemService = getService(IWorkItemServer.class);

List<ICategory> listaCategorias = workItemService.findCategories(sourceworkItem.getProjectArea(),ICategory.FULL_PROFILE,monitor);

Your answer


Register or to post your answer.