X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fjira;fp=bin%2Fjira;h=ba21683a5367f8c2b7dd0e5cc253aaa773d86c86;hb=fc0e2c7f3fce9e64608d0aa13399d62f24000784;hp=0000000000000000000000000000000000000000;hpb=67781e311ebed78e2540360784f95cb7aac9ae2f;p=clearscm.git diff --git a/bin/jira b/bin/jira new file mode 100644 index 0000000..ba21683 --- /dev/null +++ b/bin/jira @@ -0,0 +1,32 @@ +#!/usr/local/cpanel/3rdparty/bin/perl + +# cpanel - t/medium/Cpanel-LogReader.t Copyright 2022 cPanel, L.L.C. +# All rights reserved. +# copyright@cpanel.net http://cpanel.net +# This code is subject to the cPanel license. Unauthorized copying is prohibited + +use strict; +use warnings; + +use feature 'say'; +use experimental qw(signatures); + +use FindBin; + +use lib "$FindBin::Bin/../lib"; + +use JIRA (); +use GetConfig (); + +my $home = $ENV{HOME}; +my $conf = "$ENV{HOME}/.jira"; + +my %opts = GetConfig::GetConfig($conf); + +my $jira = JIRA->new(%opts); + +my $caseID = 'ART-1928'; + +my $case = $jira->getIssue($caseID); + +say "$caseID: $case->{fields}{summary}";