Adding comments API is not working after sdk upgrade from atlassian spring version 2.1.2 to 2.3.1
code:
String response = atlassianHostRestClients.authenticatedAs(hostUser).exchange(
atlassianHost.getBaseUrl() + "/rest/api/2/issue/" + issueIdOrKey + "/comment",
HttpMethod.POST,
new HttpEntity<>(payload, baseHeaders()),
String.class
).getBody();