@staff0rd/assist 0.348.0 → 0.349.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
@@ -59,6 +59,7 @@ After installation, the `assist` command will be available globally. You can als
59
59
  - `/restructure` - Analyze and restructure tightly-coupled files
60
60
  - `/review-comments` - Process PR review comments one by one
61
61
  - `/jira` - View a Jira work item
62
+ - `/update-jira [JIRA-KEY]` - Post a concise summary of this session's findings to a Jira ticket via MCP; attaches a passed key to the session's backlog item (else reads the key from it), retargets sub-task comments to the parent, and previews the comment before posting on confirmation
62
63
  - `/journal` - Append a journal entry summarising recent work, decisions, and notable observations
63
64
  - `/next [id]` - Signal completion and chain into the next backlog item; pass an `id` to run a specific item directly (falls back to the picker if the id is missing, done, won't-do, or blocked)
64
65
  - `/standup` - Summarise recent journal entries as a standup update
@@ -0,0 +1,53 @@
1
+ ---
2
+ description: Post a concise summary of this session's findings to a Jira ticket
3
+ allowed_args: "[JIRA-KEY]"
4
+ ---
5
+
6
+ You are posting a concise comment summarising this session's findings to a Jira ticket via the Atlassian MCP. If a key is passed it is first attached to the session's current backlog item; otherwise the key is read from that item.
7
+
8
+ ## Step 1: Resolve the session's backlog item
9
+
10
+ Determine 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). You need its id for the steps below.
11
+
12
+ ## Step 2: Resolve the Jira key
13
+
14
+ If `$ARGUMENTS` contains a Jira key (matches `[A-Z]+-\d+`), attach it to the session's current backlog item, then use it:
15
+
16
+ ```
17
+ assist backlog associate-jira <id> <JIRA-KEY> 2>&1
18
+ ```
19
+
20
+ If the command reports an error (item not found, malformed key, or the issue could not be fetched), relay it to the user and stop — no key is stored on failure.
21
+
22
+ If no key was passed, read it from the session item:
23
+
24
+ ```
25
+ assist backlog show <id> 2>&1
26
+ ```
27
+
28
+ Use the `Jira: <KEY>` line from the output.
29
+
30
+ If no key can be resolved — none was passed and the item has no associated key (or there is no session item) — tell the user clearly that there is nothing to post to and do nothing further. Do not guess a key.
31
+
32
+ ## Step 3: Fetch the issue and resolve the comment target
33
+
34
+ Fetch the issue with the `mcp__claude_ai_Atlassian__getJiraIssue` tool, requesting fields including `issuetype` and `parent`.
35
+
36
+ If `fields.issuetype` indicates a sub-task (`fields.issuetype.subtask` is true), retarget the comment to the parent: use `fields.parent.key` as the issue you comment on. Otherwise comment on the key itself.
37
+
38
+ ## Step 4: Compose a concise comment
39
+
40
+ Draft a terse summary of this session's findings from the conversation context:
41
+
42
+ - One summary line stating what was done or found.
43
+ - A few short bullets with the concrete specifics (files, decisions, outcomes).
44
+
45
+ Keep it concise: no headers, no wall of text, no restating the whole session. If there is little of substance to report, keep it to the single summary line.
46
+
47
+ Do not mention `assist`, the assist backlog, or any backlog item number in the comment — the Jira ticket is outward-facing and must not leak internal tooling references. Refer to commits, PRs, or the work itself instead.
48
+
49
+ ## Step 5: Preview and confirm before posting
50
+
51
+ Show the drafted comment and the target issue key to the user. Do not post until the user explicitly confirms. If they ask for edits, revise and show the updated draft again.
52
+
53
+ Once confirmed, post it with the `mcp__claude_ai_Atlassian__addCommentToJiraIssue` tool, using the resolved target key and `contentFormat: markdown`. Display the result so the user can see it landed.