It's all about the answers!

Ask a question

How to detect whether I have access to a work item through JAVA API

Arshad Adavani (231220) | asked Apr 07 '16, 1:52 a.m.
edited Apr 07 '16, 1:53 a.m.
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 :

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!

Register or 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.