list-issues · diff

git:20260418.e640726 to git:20260420.281fd3a

14 added, 15 removed. Audit B to B.

---
- description: List Jira issues — by project, assignee, or custom JQL query
+ description: List Jira issues with jirac by project, assignee, or custom JQL, including the default current-user flow
---
- List Jira issues using the `jirac` CLI.
+ List Jira issues using `jirac`.
Steps:
- 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. Determine the query parameters from the user's request:
- - If a project key is mentioned (e.g. "PROJ"), use `-p PROJ`
- - If a JQL expression is mentioned, use `--jql '<expression>'`
- - If neither, run without flags (defaults to `assignee = currentUser()`)
- 3. Run: `jirac issue list [flags]`
- 4. Display the output clearly.
+ 1. Check that `jirac` is available by running `jirac --version`. If it is missing, tell the user to install it with `cargo install jira-commands`.
+ 2. Determine the query from the request:
+ - project key
+ - explicit JQL
+ - otherwise use the default assigned-to-current-user behavior
+ 3. Run `jirac issue list` with the right flags.
+ 4. Present the results clearly.
- TUI mode (interactive):
- - `jirac issue list` (or with `-p`) opens a full-screen TUI
- - Press `/` to open the JQL search bar — cursor is visible while typing
- - Press Enter to execute the search, Esc to cancel
- - Press `?` for full keyboard shortcut help
+ Notes:
+ - `jirac issue list` without flags defaults to `assignee = currentUser()`.
+ - `jirac issue list -p PROJ` limits to one project.
+ - `jirac issue list --jql '<expression>'` gives full control.
Examples:
- "list my issues" → `jirac issue list`
- "list issues in PROJ" → `jirac issue list -p PROJ`
- - "list open bugs in PROJ" → `jirac issue list -p PROJ --jql 'project = PROJ AND issuetype = Bug AND status != Done'`
+ - "list open bugs in PROJ" → `jirac issue list --jql 'project = PROJ AND issuetype = Bug AND status != Done'`