Ejemplo n.º 1
0
 /**
  * Configuration for the console command
  */
 protected function configure()
 {
     $this->priorities = Priority::getInstance()->getAllPriorityNames();
     parent::configure();
     $this->setName('issue:create')->setDescription('Creates a new Jira ticket and returns the unique key')->addArgument('project', InputArgument::OPTIONAL, 'The project to add the ticket to')->addArgument('title', InputArgument::OPTIONAL, 'The title of the ticket being created')->addArgument('description', InputArgument::OPTIONAL, 'The description for the ticket being created')->addOption('type', null, InputOption::VALUE_OPTIONAL, 'The type of ticket being created. Default: bug')->addOption('priority', null, InputOption::VALUE_OPTIONAL, 'The priority of the ticket. Default: Medium')->addOption('hash', null, InputOption::VALUE_OPTIONAL, 'A base64 encoded JSON object containing ticket details');
     parent::customInput();
 }
Ejemplo n.º 2
0
 /**
  * Configuration for the console command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('comment:get')->setDescription('Fetches details all comemnts for a specific
             Jira issue identified by it\'s key. e.g. DEMO-1234')->addArgument('issue-key', InputArgument::OPTIONAL, 'The issue to get comments for');
 }
Ejemplo n.º 3
0
 /**
  * Configuration for the console command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('issue:get')->setDescription('Fetches details of a specific Jira issue specified by it\'s key. e.g. DEMO-1234')->addArgument('issue-key', InputArgument::OPTIONAL, 'The issue to update');
 }
Ejemplo n.º 4
0
 /**
  * Configuration for the console command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('comment:create')->setDescription('Adds a comment to a specified Jira ticket')->addArgument('issue', InputArgument::OPTIONAL, 'The issue to add a comment to')->addOption('message', 'm', InputOption::VALUE_OPTIONAL, 'The comment to add');
 }