Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get the list of Categories (Filed Against) for an workitem via API

Hello,
How to get the list of Categories (Filed Against) for an workitem via API
Thank you

0 votes


Accepted answer

Permanent link
                // 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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 411
× 235

Question asked: Jan 07 '15, 3:18 p.m.

Question was seen: 2,698 times

Last updated: Jan 08 '15, 8:23 a.m.

Confirmation Cancel Confirm