in src/main/java/org/apache/maven/plugins/changes/jira/RestJiraDownloader.java [477:498]
private void resolveList(
List<String> targetList, CloseableHttpClient client, String what, String input, String listRestUrlPattern)
throws IOException, MojoExecutionException, MojoFailureException {
if (input == null || input.isEmpty()) {
return;
}
HttpGet httpGet = new HttpGet(listRestUrlPattern);
try (CloseableHttpResponse response = client.execute(httpGet)) {
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
getLog().error(String.format("Could not get %s list from %s", what, listRestUrlPattern));
reportErrors(response);
}
JsonNode items = getResponseTree(response);
String[] pieces = input.split(",");
for (String item : pieces) {
targetList.add(resolveOneItem(items, what, item.trim()));
}
}
}