}
if (transitionInput.getComment() != null) {
if (buildNumber >= ServerVersionConstants.BN_JIRA_5) {
jsonObject.put("update", new JSONObject().put("comment",
new JSONArray().put(new JSONObject().put("add",
new CommentJsonGenerator(getVersionInfo(progressMonitor))
.generate(transitionInput.getComment())))));
} else {
jsonObject.put("comment", new CommentJsonGenerator(getVersionInfo(progressMonitor))
.generate(transitionInput.getComment()));
}
}
JSONObject fieldsJs = new JSONObject();
final Iterable<FieldInput> fields = transitionInput.getFields();