From 424257258b8ac4535f0294cdcfa42437299dcd1a Mon Sep 17 00:00:00 2001 From: Andrei Piankouski Date: Wed, 28 Aug 2024 15:37:44 +0300 Subject: [PATCH] EPMRPP-91640 || 'Assignee' is not assigned in Jira Cloud after issue is posted --- .../extension/jira/command/utils/JIRATicketUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/epam/reportportal/extension/jira/command/utils/JIRATicketUtils.java b/src/main/java/com/epam/reportportal/extension/jira/command/utils/JIRATicketUtils.java index b57f816..1476395 100755 --- a/src/main/java/com/epam/reportportal/extension/jira/command/utils/JIRATicketUtils.java +++ b/src/main/java/com/epam/reportportal/extension/jira/command/utils/JIRATicketUtils.java @@ -139,11 +139,13 @@ public static IssueInput toIssueInput(JiraRestClient client, Project jiraProject continue; } if (one.getId().equalsIgnoreCase(IssueFieldId.ASSIGNEE_FIELD.id)) { - issueInputBuilder.setAssigneeName(one.getValue().get(0)); + issueInputBuilder.setFieldInput(new FieldInput(IssueFieldId.ASSIGNEE_FIELD.id, + ComplexIssueInputFieldValue.with("id", one.getValue().get(0)))); continue; } if (one.getId().equalsIgnoreCase(IssueFieldId.REPORTER_FIELD.id)) { - issueInputBuilder.setReporterName(one.getValue().get(0)); + issueInputBuilder.setFieldInput(new FieldInput(IssueFieldId.REPORTER_FIELD.id, + ComplexIssueInputFieldValue.with("id", one.getValue().get(0)))); continue; } if (one.getId().equalsIgnoreCase(IssueFieldId.AFFECTS_VERSIONS_FIELD.id)) {