My colleague wanted to set description of issue. He tried this way . But he said it did not work.
public static void setDescription(Issue issue, String message) {
ComponentAccessor.getIssueManager().getIssueObject(issue.getId()).setDescription(message);
}
He argued to do it that way because not every issue may be a MutableIssue. That's why he did not want to do :
((MutableIssue)issue).setDescription(message);
But I said every issue you get from Jira will be mutable, because every issue has fields you can edit. But that is only my opinion.