DefaultIssue issue = issueService.getByKeyForUpdate(session, issueKey).toDefaultIssue();
Action action = getAction(actionKey);
if (action == null) {
throw new IllegalArgumentException("Action is not found : " + actionKey);
}
if (!action.supports(issue)) {
throw new IllegalStateException("A condition is not respected");
}
IssueChangeContext changeContext = IssueChangeContext.createUser(new Date(), userSession.login());
Component project = dbClient.componentDao().getByKey(session, issue.projectKey());