Search in sources :

Example 1 with IssueStatus

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;
}
Also used : IssueStatus(com.epam.pipeline.entity.issue.IssueStatus)

Aggregations

IssueStatus (com.epam.pipeline.entity.issue.IssueStatus)1