feat!: write-through to Jira by default - #17
Merged
Conversation
BREAKING CHANGE: `jai set` and `jai comment` now push changes to Jira immediately instead of queuing them locally. `jai transition` no longer side-pushes all queued changes. Use `--queue` / `-q` to restore the old queue-first behavior. - `jai set`: calls Jira UpdateField/UpdateFieldOp directly; updates local DB only on success - `jai comment`: calls Jira AddComment directly; stores real comment ID instead of synthetic local_* ID - `jai transition`: calls ExecuteTransition directly without ProcessQueue; refreshes local DB after success - TUI inline edit: writes through via background tea.Cmd; falls back to queue on API error - AddComment now returns (string, error) to surface the comment ID - All three commands accept --queue/-q to defer push to `jai push` - JSON output status field changes from "pending" to "synced"/"queued"
Update CLAUDE.md, README.md, docs/spec.md, and docs/user-guide.md to reflect that jai set, comment, and transition now push to Jira immediately by default, with --queue/-q to defer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jai set,jai comment: now push changes to Jira immediately instead of queuing locally. Errors surface at command time, not atjai pushtime.jai transition: callsExecuteTransitiondirectly instead of queuing then callingProcessQueue(which had the surprising side effect of pushing ALL queued changes).tea.Cmd; falls back to queue on API error.--queue/-qflag added to all three commands to preserve the old queue-first behavior.AddCommentnow returns(string, error)so write-through comments get real Jira IDs instead of syntheticlocal_*IDs."status"field changes from"pending"to"synced"(write-through) or"queued"(with--queue).Breaking Changes
jai setqueues locally, needsjai pushjai setpushes to Jira immediatelyjai commentqueues locallyjai commentpushes to Jira immediatelyjai transitionpushes ALL queued changesjai transitionpushes only the transition--queuefor offline)"pending""synced"or"queued"Migration
Add
--queue/-qto any scripts that relied on the old queue-first behavior:Test plan
go build -tags fts5 ./...— clean buildgo test -tags fts5 ./...— 258 tests passjai set <key> priority Minorpushes immediately (staging, 19/19 tests pass)jai set <key> priority Major --queuequeues for pushjai comment <key> "test"posts immediatelyjai transition <key> "In Progress"transitions immediatelyjai set <key> labels --add/--removearray ops push immediately