use of com.epam.pipeline.entity.issue.IssueStatus in project cloud-pipeline by epam.
the class IssueManager method updateIssueObject.
private Issue updateIssueObject(Issue issue, IssueVO issueVO) {
String name = issueVO.getName();
ensureNotEmptyString(name, MessageConstants.ERROR_INVALID_ISSUE_NAME);
String text = issueVO.getText();
ensureNotEmptyString(text, MessageConstants.ERROR_INVALID_ISSUE_TEXT);
IssueStatus status = issueVO.getStatus();
Assert.notNull(status, messageHelper.getMessage(MessageConstants.ERROR_INVALID_ISSUE_STATUS));
issue.setName(name);
issue.setText(text);
issue.setStatus(status);
issue.setLabels(issueVO.getLabels());
return issue;
}
Aggregations