Skip to content

Commit

Permalink
EPMRPP-92452 || Fix empty status on get ticket value
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik committed Aug 2, 2024
1 parent 62416f4 commit dbf82a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dbf82a3

Please sign in to comment.