/** * 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(); }