diff --git a/src/main/java/com/epam/reportportal/extension/monday/command/GetIssueCommand.java b/src/main/java/com/epam/reportportal/extension/monday/command/GetIssueCommand.java index 7109c36..98761c5 100644 --- a/src/main/java/com/epam/reportportal/extension/monday/command/GetIssueCommand.java +++ b/src/main/java/com/epam/reportportal/extension/monday/command/GetIssueCommand.java @@ -108,7 +108,7 @@ private Ticket convertToTicket(String url, String boardId, GetItemsQuery.Item is values -> values.stream().filter(v -> Objects.nonNull(v.onStatusValue)) .map(v -> v.onStatusValue).filter(s -> Objects.nonNull(s.id)) .filter(s -> s.id.contains("status")).findFirst()) - .ifPresent(s -> ticket.setStatus(s.text)); + .ifPresentOrElse(s -> ticket.setStatus(s.text), () -> ticket.setStatus("")); ticket.setTicketUrl( Suppliers.formattedSupplier("{}/boards/{}/pulses/{}", url, boardId, issue.id).get()); return ticket;