Using Script runner and JIRA 6.3.7, I am getting an error when updating an issue with IssueService that looks incorrect to me.
CustomField cfSprint = cfMgr.getCustomFieldObjects(mutableIncomplete).find {it.name == 'Sprint'}
IssueInputParameters issueInputParameters = issueService.newIssueInputParameters()
issueInputParameters.addCustomFieldValue(cfSprint.getIdAsLong(),null);
valRes = issueService.validateUpdate(authContext.getUser().getDirectoryUser(), mutableIncomplete.getId(),issueInputParameters);The validation result fails with:
You do not have permission to edit issues in this project.
But I have the permissions on this project...
I have assigned myself all the roles in this project. Most of these roles have the edit issue permission in the permission scheme.
I can edit and transition the issues in the UI.
Is there something I am missing here with IssueService?