FS-10372: [Build-System,fs-utils] #resolve

This commit is contained in:
Anthony Minessale
2017-06-06 13:56:15 -05:00
parent 95c7fb0155
commit 50caeda5fe
2 changed files with 124 additions and 26 deletions

View File

@@ -148,6 +148,20 @@ if ($opts{bug}) {
printf "%d file%s attached.\n", scalar @ARGV, scalar @ARGV == 1 ? "" : "s";
}
if ($opts{versions_array}) {
$input = {
update => {
fixVersions => [
{set => $opts{versions_array}}
]
}
};
$jira->PUT("/issue/" . $opts{bug}, undef, $input);
}
exit;
}
@@ -227,6 +241,22 @@ if ($opts{debug}) {
$issue = $jira->POST('/issue', undef, $input) or die "Issue was not created:";
print "Issue Posted: " . $issue->{key};
if ($opts{versions_array}) {
$input = {
update => {
fixVersions => [
{set => $opts{versions_array}}
]
}
};
$jira->PUT("/issue/" . $issue->{key}, undef, $input);
print "Fix versions updated for issue " . $issue->{key};;
}
if ($opts{attach}) {
$jira->attach_files($issue->{key}, @ARGV);
printf "%d file%s attached.\n", scalar @ARGV, scalar @ARGV == 1 ? "" : "s";