It's all about the answers!

Ask a question

Permission denied exception when executing a custom RTC Plugin.


Surender Biyyala (401448) | asked Jan 28 '15, 5:03 a.m.
 Hi All,

I developed a custom RTC plugin which will do the following.

-> Auto calculates total story points attribute for a work item which is the sum of the Story points oif all its children.

for this I`m reading all the child work items and getting the Story points and adding them up.

I`m receiving the Permission denied exception sometimes when the user is not a member for one of the team Area to which the child Story belongs to.

how can I avoid this?

Thanks
Surender

One answer



permanent link
Ralph Schoon (55.5k23642) | answered Jan 28 '15, 5:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Is read permission denied or is write permission denied?
Operational behavior runs in the context of the user doing the operation.

If it is read permission, you can only avoid this by providing the users with the required permissions. Maybe you can use the permission aware API when retrieving the linked work items and only work on the ones you have permission.

If it is write permission then the user needs the write permission on the work item attribute.

Your answer


Register or to post your answer.