How to get the list of Categories (Filed Against) for an workitem via API
![]()
EclipseTalk . (327●3●59●59)
| asked Jan 07 '15, 3:18 p.m.
edited Jan 08 '15, 8:23 a.m. by Ralph Schoon (61.5k●3●36●43)
Hello,
How to get the list of Categories (Filed Against) for an workitem via API Thank you |
Accepted answer
![]()
// connect to category manager for this project area
CategoriesManager catManager = CategoriesManager.createInstance(auditableClient, projectarea_handle, null); // get the root node CategoryTreeNode root = catManager.getRoot(); // loop thru the roots children for (CategoryTreeNode nodei : root.getChildren()) { } note that this is a tree of categories, not a flat list.. so for each node, you need to check if there are children. EclipseTalk . selected this answer as the correct answer
|