How to get the custom Workitem Name and Category?
![](http://jazz.net/_images/myphoto/87bc7dcd95e56d63f77dcb76036a5c02.jpg)
Accepted answer
![](http://jazz.net/_images/myphoto/87bc7dcd95e56d63f77dcb76036a5c02.jpg)
Hi Muthukumar,
you get only the identifyer of the work item type. To get more details on the type itself you need to get the work item type and look at its data. This pattern is very common in the API.
IWorkItemCommon wCommon=getService(IWorkItemCommon.class);
wCommon.findWorkItemType(projectArea, workItem.getWorkItemType(), monitor);
workItemType.getCategory();
workItemType.getAliases();
you get only the identifyer of the work item type. To get more details on the type itself you need to get the work item type and look at its data. This pattern is very common in the API.
IWorkItemCommon wCommon=getService(IWorkItemCommon.class);
wCommon.findWorkItemType(projectArea, workItem.getWorkItemType(), monitor);
workItemType.getCategory();
workItemType.getAliases();
3 other answers
![](http://jazz.net/_images/myphoto/87bc7dcd95e56d63f77dcb76036a5c02.jpg)
Ralph,
I want to get the detail which we will provide during the new CUSTOM WORK ITEM ADD
Process Configuration --> Configuration Data --> Work Items --> Types and Attributes --> Click on any Work Item type.
There will be three columns Name, ID and Category.
workitem.getWorkitemType() method will return the ID. But I want to get the Name and Category through Java API
NOTE : I am using Server side plug-in
I want to get the detail which we will provide during the new CUSTOM WORK ITEM ADD
Process Configuration --> Configuration Data --> Work Items --> Types and Attributes --> Click on any Work Item type.
There will be three columns Name, ID and Category.
workitem.getWorkitemType() method will return the ID. But I want to get the Name and Category through Java API
NOTE : I am using Server side plug-in