Can not save Work Item due to permission issue
I'm trying to use RTC Plain JAVA API to create a defect.
I have the permission to create a defect from UI.
But I've got following error when I have set values and save a defect work item.
Does the following error mean I don't have the permission to create a defect by API? Thanks.
com.ibm.team.process.common.advice.TeamOperationCanceledException : CRJAZ6053E The 'Save Work Item' operation cannot be completed. Permission is required to complete the operation.
at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.advise( OperationAdviceManager.java:387 )
...
Name: Save Work Item
ID: com.ibm.team.workitem.operation.workItemSave
Severity: ERROR
Name: Required Properties
ID: com.ibm.team.workitem.advisor.requiredProperties
Severity: OK
Name: Required Approvals
ID: com.ibm.team.workitem.advisor.requiredApprovals
Severity: OK
Name: All Children Resolved
ID: com.ibm.team.workitem.advisor.allChildrenClosed
Severity: OK
Name: Save Project Area
ID: com.ibm.team.process.server.saveProjectArea
Severity: ERROR
Summary: Permission Denied
Description: You don't have permission to perform the following actions:
Modify the process specification (modify/specification)
Severity: ERROR
Name: Avoid saving private roles
ID: com.ibm.ics.scm.rtc.privateroles.project
Severity: OK
sam detweiler replied me in another question.
But I believe I'm saving a work item(defect), don't know why it triggered the saveProjectArea. Following is the related code. And I have used the similar code to save a work item(task) successfully. Confused.
Any tips? Thanks a lot.
|
2 answers
Ralph Schoon (63.5k●3●36●46)
| answered Dec 05 '14, 5:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I agree with Sam but I am not sure why it happens either.
My suggestion would be to create your own test system where you can modify the permissions, get your code to work and then try it a gain on the current project area and find out what the difference is. |
I suspect its the Planned For value. I have seen a similar error when importing workitems that have a Planned For value that does not yet exist in the Project Area. The work item creation is attempting to add the Planned For value you specify to the project area but is failing because you don't have a role with permission to do that. Note that children iterations of the out of the box "Main Development" timeline should start with "development/..." not "Main development/..." as you have.
Try String plannedFor = "development/Release Backlog/2014 Development";//required by task, defect instead. Comments
sam detweiler
commented Dec 05 '14, 2:53 p.m.
good catch... I had this problem on import (the extra iterations and categories were created).. I had admin so no error.
|
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.