Skip to content

Commit

Permalink
EPMRPP-93097 || JIRA Cloud. Integration is created without Issue Type (
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski authored Jul 24, 2024
1 parent a9652b4 commit 6971cd4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ protected List<PostFormField> invokeCommand(Integration integration, Map<String,
// Field ID for next JIRA POST ticket requests
String fieldID = issueField.getId();
String fieldType = issueField.getSchema().getType();
boolean isRequired = issueField.isRequired();
List<AllowedValue> allowed = new ArrayList<>();

// Provide values for custom fields with predefined options
Expand Down Expand Up @@ -134,6 +135,7 @@ protected List<PostFormField> invokeCommand(Integration integration, Map<String,
}
}
if (fieldID.equalsIgnoreCase(IssueFieldId.ISSUE_TYPE_FIELD.id)) {
isRequired = true;
defValue = Collections.singletonList(issueTypeParam);
}
if (fieldID.equalsIgnoreCase(IssueFieldId.ASSIGNEE_FIELD.id)) {
Expand All @@ -154,7 +156,7 @@ protected List<PostFormField> invokeCommand(Integration integration, Map<String,
continue;
}

result.add(new PostFormField(fieldID, fieldName, fieldType, issueField.isRequired(), defValue, allowed));
result.add(new PostFormField(fieldID, fieldName, fieldType, isRequired, defValue, allowed));
}
return result;
} catch (Exception e) {
Expand Down

0 comments on commit 6971cd4

Please sign in to comment.