I'm trying to create an issue in JIRA using the jira-rest-java-client-core API (ver
5.1.2-2bd0a62e).
The error I get back is:
com.atlassian.jira.rest.client.api.RestClientException [ErrorCollection{status=500, errors={}, errorMessages=[Internal server error]}]
I'm at a loss for what to correct, since the error isn't descriptive and implies it's on Atlassian's side.
private String createIssue(TicketRequestMessage message) {
log.info("Sending issue ");
String issueKey = "Empty";
try {
log.info("Get client");
IssueRestClient issueClient = jiraClient.getIssueClient();
IssueInput newIssue = new IssueInputBuilder("DCST", TASK, message.getSummary())
.setDescription(message.getDescription())
.setPriorityId(PRIORITY_MEDIUM)
.build();
log.info("Create issue ");
issueKey = issueClient.createIssue(newIssue).claim().getKey();
} catch (RestClientException e) {
log.error(e.getClass().getName() + " " + e.getMessage());
e.getErrorCollections().stream().forEach(er -> {
er.getErrorMessages().stream().forEach(m -> {
log.error(m);
});
});
}
log.info("Issue key: " + issueKey);
return issueKey;
}