create-issue · diff

git:20260415.2d33454 to git:20260418.e640726

6 added, 6 removed. Audit B to B.

---
description: Create a new Jira issue — interactive prompts for project, type, summary, and custom fields
---
- Create a new Jira issue using the `jira` CLI.
+ Create a new Jira issue using the `jirac` CLI.
Steps:
- 1. Check if `jira` binary is available by running `jira --version`. If not found, tell the user to install it with `cargo install jira-commands`.
+ 1. Check if `jirac` binary is available by running `jirac --version`. If not found, tell the user to install it with `cargo install jira-commands` (binary: `jirac`).
2. Extract from the user's request:
- Project key (required) — ask if not mentioned
- Issue type (optional, e.g. Story, Bug, Task) — pass as `--type <TYPE>` if mentioned
- Summary (optional) — pass as `--summary '<text>'` if mentioned
- 3. Run: `jira issue create -p <PROJECT> [--type <TYPE>] [--summary '<SUMMARY>']`
+ 3. Run: `jirac issue create -p <PROJECT> [--type <TYPE>] [--summary '<SUMMARY>']`
4. The CLI will interactively prompt for remaining fields. Tell the user the interactive prompts will appear in their terminal.
5. After creation, show the new issue key returned by the CLI.
Examples:
- - "create an issue in PROJ" → `jira issue create -p PROJ`
- - "create a bug in PROJ called login page crashes" → `jira issue create -p PROJ --type Bug --summary 'login page crashes'`
- - "buat task baru di PROJ" → `jira issue create -p PROJ --type Task`
+ - "create an issue in PROJ" → `jirac issue create -p PROJ`
+ - "create a bug in PROJ called login page crashes" → `jirac issue create -p PROJ --type Bug --summary 'login page crashes'`
+ - "buat task baru di PROJ" → `jirac issue create -p PROJ --type Task`