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 ...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? |
Be the first one to answer this question!
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.