This error is caught when trying to make a trasition using JIRA API (JIRA 6.2.4).
ErrorCollection errors = null;
JiraAuthenticationContext authenticationContext = ComponentAccessor.getJiraAuthenticationContext();
if(!status.getName().equals("")){
try{
authenticationContext.setLoggedInUser(reporter);
WorkflowTransitionUtil workflowTransitionUtil = (WorkflowTransitionUtil) JiraUtils.loadComponent(WorkflowTransitionUtilImpl.class);
workflowTransitionUtil.setUsername(reporter.getName());
workflowTransitionUtil.setIssue(issueToSetStatusOn);
workflowTransitionUtil.setAction(actionId);
errors = workflowTransitionUtil.validate();
workflowTransitionUtil.progress();
}catch (Exception e){
addError("Cannot change issue state", e);
addError("validateTransition parameters: " + "reporter = " + reporter + ", issue.getId() = " + issue.getId() + ", actionId = " + actionId);
if (errors != null){
addError("errors" + errors);
}
}
}
The transition with the given ID exists.
Later incoming mail log includes [The anonymous user does not have permission to perform action on given issue.]