RTC Jazz Client API: How to get a work item category ID?
![]()
This is part of my code;
List<ICategory> findCategories= workItemService.findCategories(projectArea, ICategory.FULL_PROFILE, null);
Iterator<ICategory> i = findCategories.iterator();
while(i.hasNext()){
ICategory ic = i.next();
ICategoryHandle categoryHandle = (ICategoryHandle)ic;
ICategory category = (ICategory) repo.itemManager()
.fetchCompleteItem(categoryHandle, IItemManager.DEFAULT, null);
........
I can use category.getName() to get category name but how can I get the category item_id? It looks like this: _4q8WEMlTEeKzqIh7h7lAkg
Thansk!!!!
|
Accepted answer
![]()
Because ICategory is an auditable, the method getItemId should work
from the SDK getItemIdUUID getItemId()
Clement Liu selected this answer as the correct answer
Comments Oops, I did miss that. Thank you, Sam. and you know, in Eclipse, if you type the . after the variable name and wait, it will pop up all methods available. and it will show you their return data types.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.