How to detect whether I have access to a work item through JAVA API
Hi All,
I am trying to get a work item by id by using the method findWorkItemById(almId, IWorkItem.FULL_PROFILE, monitor). The work item exists under the repository that I am connected to but I do not have access to that project area/not part of that team. So when I call the above method it returns me null. In the web client it returns me this :
Error!
No permission to access the item.
I have 2 open questions. 1. How can I still retrieve this work item through JAVA API ? All I have with me is server details and work item id. 2. If I cannot, How can I at least detect that I do not have access to that work item through JAVA API? Thanks for any help :) |
Be the first one to answer this question!
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.