Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Be the first one to answer this question!

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,220

Question asked: Apr 07 '16, 1:52 a.m.

Question was seen: 1,349 times

Last updated: Apr 07 '16, 1:53 a.m.

Confirmation Cancel Confirm