Skip to content

feat(issues): add started_at timestamp (GH#2796)#3206

Open
maphew wants to merge 3 commits intomainfrom
feat-started-at-2796
Open

feat(issues): add started_at timestamp (GH#2796)#3206
maphew wants to merge 3 commits intomainfrom
feat-started-at-2796

Conversation

@maphew
Copy link
Copy Markdown
Collaborator

@maphew maphew commented Apr 12, 2026

Summary

  • Adds started_at field to issues, auto-set when status transitions to in_progress
  • Once set, preserved across subsequent status changes (not overwritten on re-entry)
  • Query filter support: bd list --query 'started>2026-01-01'
  • Displayed in bd show between Created and Updated; available in --json output

Closes #2796

Changes

  • Migration 0027 adds started_at column to issues and wisps
  • ManageStartedAt() in issueops mirrors existing ManageClosedAt() pattern
  • Query evaluator + SQL filter clauses added alongside existing closed/updated/created filters
  • Scan/insert sites updated to hydrate and persist the new column

Test plan

  • go build ./cmd/bd passes
  • go test ./internal/query/... ./internal/storage/issueops/... passes
  • Manual: create issue, bd update --claim, verify bd show displays Started date
  • Manual: bd list --query 'started>2026-01-01' --json filters correctly

🤖 Generated with Claude Code

maphew and others added 3 commits April 11, 2026 13:01
…GH#2973)

Users expected JSONL export to refresh automatically but export.auto
defaulted to false, requiring explicit opt-in. Also the default filename
(export.jsonl) didn't match the canonical issues.jsonl used in docs and
git hooks. Change defaults: export.auto=true, export.path=issues.jsonl,
export.git-add=true so viewers (bv) and git workflows see fresh data
without extra configuration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…973)

Interactive bd init now asks whether to enable auto-export (default: yes).
Users can opt out during setup instead of discovering the setting later.

Also documents the export.* config namespace in bd config --help with
all four keys (export.auto, export.path, export.interval, export.git-add)
and adds export examples.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a `started_at` field to issues that is auto-populated when an
issue transitions to in_progress status. Preserved across subsequent
status changes.

- Migration 0027 adds started_at column to issues and wisps tables
- ManageStartedAt() in issueops mirrors ManageClosedAt() pattern
- Query filter support: `started>2026-01-01`, `started<...`
- Displayed in `bd show` between Created and Updated
- Exposed in --json output via struct tag

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add started_at if possible

1 participant