It's all about the answers!

Ask a question

Permission denied exception when executing a custom RTC Plugin.

Surender Biyyala (403748) | 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?


One answer

permanent link
Ralph Schoon (63.2k33646) | answered Jan 28 '15, 5:30 a.m.
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.

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.