create-issue · git:20260415.2d33454 · 2026-04-15 · sha256 e45eaf1c451c71f9

create-issue git:20260415.2d33454B

Immutable. This exact content never changes and is served at /api/v1/blob/e45eaf1c451c71f9.

---
description: Create a new Jira issue — interactive prompts for project, type, summary, and custom fields
---

Create a new Jira issue using the `jira` 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`.
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>']`
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`