How can I use the RTC API to set a work item category to restricted (access and view) ?
Hello,
how can the work item category be set to restricted access / restricted viewing using the API? There is a method in the ICategory ( isReadAccessEnabled() ) to evaluate whether if read access is enabled or not. But I did not found a method to set these value. |
One answer
As Sam already said you have to evaluate the risk of using internal APIs that could possibly break your code in future releases.
But to answer your original question, you can set the read access on a category the following way by using com.ibm.team.workitem.common.internal.model.Category ICategory category = ...; IWorkItemServer fWorkItemService = fWorkItemService = getService(IWorkItemServer.class); Category internalCategory = (Category) (ICategory) category.getWorkingCopy(); |
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.
Comments
most of the process mgmt administration functions are not exposed (internal apis), or there is some private storage not documented for application usage.
many times I have had to read the product source code to determine how the product does it, and then evaluate if I want to carry that risk in my coding.