return $text;
}
-#my $user = getuser();
-#my $pass = getpass();
-
my %opts;
my $hashtxt = `git log -1 --oneline 2>/dev/null`;
my $jira = JIRA::REST->new('https://freeswitch.org/jira', $opts{user}, $opts{pass}) or die "login incorrect:";
my $issue = $jira->GET("/issue/FS-7985") or die "login incorrect:";
-#print Dumper $issue;
+#print $issue->{key};
#exit;
if (!$opts{type}) {
-my $issue = $jira->POST('/issue', undef, {
- fields => {
- project => { key => 'FS' },
- issuetype => { name => $opts{type} },
- summary => $opts{summary},
- description => $opts{desc},
- customfield_10024 => $opts{hash},
- customfield_10025 => $opts{hash},
- components => $opts{components_array}
- },
- });
+my $issue = $jira->POST('/issue', undef,
+ {
+ fields => {
+ project => { key => 'FS' },
+ issuetype => { name => $opts{type} },
+ summary => $opts{summary},
+ description => $opts{desc},
+ customfield_10024 => $opts{hash},
+ customfield_10025 => $opts{hash},
+ components => $opts{components_array}
+ },
+ }) or die "Issue was not created:";
-print "Issue Posted";
+print "Issue Posted: " . $issue->{key};
__END__