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

PermissionDeniedException when accessing work item using plain java api

I am using plain java api to access work items and its history. I am able to get the history states and the dates the states were changed. It is working fine but whenever a specific work item is accessed let say Work Item 99999, I am getting the error below:

com.ibm.team.repository.common.PermissionDeniedException: CRJAZ1319E Read access is not permitted. The user, <user id>, tried to read one or more items that have the following type: WorkItem
 at com.ibm.team.repository.client.internal.ItemManager.internalFetchState(ItemManager.java:1863)
 at com.ibm.team.repository.client.internal.ItemManager.access$2(ItemManager.java:1832)
 at com.ibm.team.repository.client.internal.ItemManager$AbstractStore.retrieveItem(ItemManager.java:197)
 at com.ibm.team.repository.client.internal.ItemManager$StateStore.fetchItem(ItemManager.java:498)
 at com.ibm.team.repository.client.internal.ItemManager.fetchCompleteState(ItemManager.java:1017)

The userid that i am using to access the work items have Administrator role - both on the project area and all team areas. I also checked Work Item 99999 and its history thru the web client but I can't find any difference with other work items. Any idea why am I getting PermissionDeniedException just for that specific work item?

0 votes



One answer

Permanent link
What if you run a query and use the permission aware API, can you get that work item? Otherwise an administrator should have access to pretty much all data. So I am not sure what happens.

0 votes

Your answer

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

Question asked: Oct 20 '14, 11:44 p.m.

Question was seen: 3,711 times

Last updated: Oct 21 '14, 2:39 a.m.

Confirmation Cancel Confirm