Skip to content

Commit

Permalink
Set not-mapped-assignee only when the assignee is actually present bu…
Browse files Browse the repository at this point in the history
…t not mapped
  • Loading branch information
marko-bekhta committed Oct 24, 2024
1 parent b052bbe commit 1962e43
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ protected JiraIssue issueToCreate(JiraIssue sourceIssue) {
destinationIssue.fields.reporter = user(sourceIssue.fields.reporter).map(this::toUser).orElse(null);
}

destinationIssue.fields.assignee = user(sourceIssue.fields.assignee).map(this::toUser)
.orElseGet(context::notMappedAssignee);
if (sourceIssue.fields.assignee != null) {
destinationIssue.fields.assignee = user(sourceIssue.fields.assignee).map(this::toUser)
.orElseGet(context::notMappedAssignee);
}

return destinationIssue;
}
Expand Down

0 comments on commit 1962e43

Please sign in to comment.