@staff0rd/assist 0.327.1 → 0.328.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,6 +41,7 @@ After installation, the `assist` command will be available globally. You can als
41
41
  ## Claude Commands
42
42
 
43
43
  - `/add-command` - Add a new run command to assist.yml
44
+ - `/associate-jira <KEY> [id]` - Associate a Jira ticket with the backlog item this session is working on (or an explicit id) by calling `assist backlog associate-jira`
44
45
  - `/bug` - File a bug with reproduction steps, expected and actual behavior
45
46
  - `/comment` - Add pending review comments to the current PR
46
47
  - `/commit` - Commit only relevant files from the session
@@ -149,6 +150,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
149
150
  - `assist backlog run <id>` - Run a backlog item's plan phase-by-phase with Claude; `--resume-session <id>` resumes an interrupted Claude session for the current phase (used by the sessions daemon when it restarts a running item)
150
151
  - `assist backlog export [file]` - Export every table in the backlog database (discovered by live schema introspection, so new tables are covered automatically) to a file, or stdout if omitted
151
152
  - `assist backlog import [file]` - Restore every table present in a dump (file or stdin) back into the backlog database in foreign-key-safe order, faithfully replacing all data and resyncing identity sequences; prompts for confirmation (use `-y, --yes` to skip; required when reading from stdin)
153
+ - `assist backlog associate-jira <id> [key]` - Associate a Jira ticket with a backlog item; validates the key shape, fetches the issue to confirm it exists, and stores the key (re-running with a different key replaces it). Use `--clear` to remove the association
152
154
  - `assist backlog move-repo <old-origin> [new-origin]` - Retag all items from one origin to another after a repo rename; the new origin defaults to the current repo's remote, both accept URL or `git@` forms, and a bare repo name works for the old origin when unambiguous. Prompts for confirmation (use `-y, --yes` to skip)
153
155
  - `assist backlog web [-p, --port <number>] [--no-open]` - Open the backlog tab in the web dashboard (default port 3100); `--no-open` skips opening a browser on startup
154
156
  - `assist roam auth` - Authenticate with Roam via OAuth (opens browser, saves tokens to ~/.assist.yml)
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: Associate a Jira ticket with a backlog item
3
+ allowed_args: "<JIRA-KEY> [backlog item id]"
4
+ ---
5
+
6
+ You are associating a Jira ticket with a backlog item by calling the `assist backlog associate-jira` CLI command, which validates the key, confirms the issue exists in Jira, and stores it on the item.
7
+
8
+ ## Step 1: Parse arguments
9
+
10
+ `$ARGUMENTS` contains a Jira key (e.g. `PROJ-123`) and an optional backlog item id. Identify which token is the Jira key (matches `[A-Z]+-\d+`) and which, if any, is the item id (a bare number).
11
+
12
+ ## Step 2: Resolve the target item
13
+
14
+ If an explicit item id was provided, use it.
15
+
16
+ Otherwise, use the backlog item this session is working on — the one you are implementing, reviewing, or otherwise focused on (e.g. via `/next-backlog-item`, a `backlog run`, or earlier in this conversation). Use its id directly.
17
+
18
+ If there is no explicit id and this session is not working on a backlog item, there is nothing to associate the key with — tell the user and ask them to pass an explicit item id.
19
+
20
+ ## Step 3: Associate the key
21
+
22
+ Call the CLI command with the resolved id and the Jira key:
23
+
24
+ ```
25
+ assist backlog associate-jira <id> <JIRA-KEY> 2>&1
26
+ ```
27
+
28
+ The command validates the key shape, fetches the issue to confirm it exists, prints its title, and stores the key. To remove an existing association instead, run:
29
+
30
+ ```
31
+ assist backlog associate-jira <id> --clear 2>&1
32
+ ```
33
+
34
+ Display the command output so the user can see the result. If the command reports an error (item not found, malformed key, or the issue could not be fetched), relay it to the user — no key is stored on failure.