Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

456: Read value of resolved in build properly when considering backports #706

wants to merge 3 commits into from
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -72,8 +72,8 @@ static Optional<JdkVersion> mainFixVersion(Issue issue) {
log.warning("Issue " + + " has multiple valid fixVersions - ignoring");
return Optional.empty();
if ("customfield_10006")) {
return Optional.of(JdkVersion.parse(versionString.get(0),"customfield_10006").asString()));
if ("customfield_10006") &&"customfield_10006").isObject()) {
return Optional.of(JdkVersion.parse(versionString.get(0),"customfield_10006").get("value").asString()));
} else {
return Optional.of(JdkVersion.parse(versionString.get(0)));
@@ -175,7 +175,7 @@ private void setVersion(Issue issue, String version) {
issue.setProperty("fixVersions", JSON.array().add(version));
if (!resolvedInBuild.isEmpty()) {
issue.setProperty("customfield_10006", JSON.of(resolvedInBuild));
issue.setProperty("customfield_10006", JSON.object().put("value", resolvedInBuild));