Hi @zuber,
I assume that Jira is returning a detailed error message along with the 400 status code, so I suggest making sure that is printed first of all.
You can bump the log level of RestTemplate using logging.level.org.springframework.web.client=DEBUG, as described in this StackOverflow post.
But I also recall coming across SPR-9367, suggesting that the default SimpleClientHttpRequestFactory doesn’t support this, and that the best solution is switching the underlying HTTP client to Apache HttpComponents.
@Bean
public RestTemplateCustomizer httpComponentsRestTemplateRequestFactoryCustomizer() {
return restTemplate -> restTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory());
}
Once you’ve done that, you can also bump logging.level.org.apache.http=DEBUG.