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.
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.
One answer
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.
See https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ to understand load profiles.
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.