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

Override IWorkItemServer:saveWorkItem for WI permission control

I try to implement an enhanced to my RTC 4.0.7 server api. Brief scenario: when a user deliver one or more changesets, the our server APIs verify the content of every files. If a file violates a rule, an alert (a checkbox of property) it's insert into WI's screen and his state is changed to error.
Currently, only the admin of project area can remove the alert and the user can put the WI in the previous state for deliver the file changed.
Now, we need to implement the unflag when user change  back  the WI from the error status to initial status.
I have the structure for do that:
IWorkItemServer wiServer = getService(IWorkItemServer.class);
//IWorkItem wi ...
//IAttribute value ..
wi.setValue(value, new Boolean(false)); wiServer.saveWorkItem2(wi, null, null);
but when user change the status and save the WI i have the exception
com.ibm.team.process.common.advice.TeamOperationCanceledException: CRJAZ6053E The 'Save Work Item' operation cannot be completed. Permission is required to complete the operation.
How i can bypass the control and update the WI?

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
× 10,942

Question asked: Dec 02 '15, 11:46 a.m.

Question was seen: 1,815 times

Last updated: Dec 02 '15, 11:48 a.m.

Confirmation Cancel Confirm