jql · diff

git:20260418.e640726 to git:20260420.281fd3a

6 added, 8 removed. Audit B to B.

---
- description: Build and run a JQL query interactively — filter issues by project, status, assignee, and more
+ description: Build or run Jira JQL queries with jirac, either directly from a query string or through the interactive JQL helper
---
- Build and execute a JQL query using the interactive JQL builder in the `jirac` CLI.
+ Build and execute JQL 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. If the user already has a JQL expression, run it directly: `jirac issue list --jql '<expression>'`
- 3. If the user wants help building a JQL query, launch the interactive builder: `jirac issue jql`
- - The CLI will prompt step-by-step: project → status → assignee
- - Tell the user the interactive prompts will appear in their terminal
- 4. Display the resulting issues from the CLI output.
+ 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. If the user already has a JQL expression, run it directly with `jirac issue list --jql '<expression>'`.
+ 3. If the user wants help composing a query, run `jirac issue jql`.
+ 4. Explain the resulting issues or the generated query clearly.
Examples:
- "run JQL: project = PROJ AND status = 'In Progress'" → `jirac issue list --jql 'project = PROJ AND status = "In Progress"'`
- "help me build a JQL query" → `jirac issue jql`
- "find all bugs assigned to me in PROJ" → `jirac issue list --jql 'project = PROJ AND issuetype = Bug AND assignee = currentUser()'`