App-JC-Client

 view release on metacpan or  search on metacpan

lib/App/JC/Client/listIssues.pm  view on Meta::CPAN

package App::JC::Client::listIssues;
#ABSTRACT: class implementing the add issue command of the jira client
use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::JC::Client);

use Term::ANSIColor;
use Try::Tiny;
use JIRA::Client::Automated;

# the version of the module
our $VERSION = '0.001';

use String::Formatter named_stringf => {
  codes => {
    s => sub { $_ },     # string itself
  },
};

command_short_description 'create an issue within a project';
command_usage 'jc.pl add_issue <project> <type> <summary> <description>';


option 'project' => (
      is                => 'ro',
      isa               => 'Str',
      required          => 1,
      documentation     => q[The Project in which to create the issue],
      cmd_aliases       => [qw(p)], # Alternative option name
  );

  option 'tasktype' => (
        is                => 'ro',
        isa               => 'Str',
        required          => 0,
        default           => "all",
        documentation     => q[what kind of issue to add],
        cmd_aliases       => [qw(t)], # Alternative option name
    );

  option 'start' => (
        is                => 'ro',
        isa               => 'Int',
        required          => 0,
        default           => 1,
        documentation     => q[at which search result to start],
        cmd_aliases       => [qw(s)], # Alternative option name
    );

  option 'max' => (
        is                => 'ro',
        isa               => 'Int',
        required          => 0,
        default           => 100,
        documentation     => q[maximum number of results to show],
        cmd_aliases       => [qw(m)], # Alternative option name
    );

  option 'format' => (
        is                => 'ro',
        isa               => 'Str',
        required          => 0,
        default           => '%10{key}s %{summary}s',
        documentation     => q[in which format to show the output],
  );


sub run



( run in 0.504 second using v1.01-cache-2.11-cpan-39bf76dae61 )