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 :
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 :)
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 :)