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

How to get all categories and targets in one project area by using Java API?

How to get all categories(Filed Against) and targets(planned for) in one project area by using Java API?
I use the following code :
List<ICategory> categoryList = workItemClient.findCategories(projectArea, ItemProfile<ICategory> , monitor);

however, the code can not work, how to define the second parameter: ItemProfile<ICategory> ?

If anyone is familiar with such a way, I would be thankful.

0 votes



One answer

Permanent link
Here are some code examples for handling iterations that you could use: https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/

See https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ to understand load profiles.

0 votes

Comments

Also if you set up the SDK like described in https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ you can use the Eclipse PDE's Java Search to look for references. You will find that there is code like

List<icategory> findCategories = workItemService.findCategories(
        targetProjectArea, ICategory.FULL_PROFILE, monitor);

And that the load profile is actually at the interface. You have SMALL_PROFILE and FULL_PROFILE at least.

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
× 235
× 89
× 32
× 9
× 4
× 3

Question asked: Oct 21 '13, 10:02 p.m.

Question was seen: 7,416 times

Last updated: Oct 22 '13, 2:19 a.m.

Confirmation Cancel Confirm