Skip to content

Commit 5907658

Browse files
steveyeggeryanbagwellclaude
committed
fix(jira): log when no matching workflow transition is available
When applyTransition cannot find a transition matching the desired status, log it via debug.Logf so users can diagnose workflow restriction issues. Follow-up to PR gastownhall#2157. Co-Authored-By: Ryan Bagwell <ryanbagwell@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 051a43d commit 5907658

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/jira/tracker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77
"strings"
88

9+
"github.com/steveyegge/beads/internal/debug"
910
"github.com/steveyegge/beads/internal/storage"
1011
"github.com/steveyegge/beads/internal/tracker"
1112
"github.com/steveyegge/beads/internal/types"
@@ -204,6 +205,7 @@ func (t *Tracker) applyTransition(ctx context.Context, key string, status types.
204205
}
205206
}
206207

208+
debug.Logf("jira: no available transition to %q for %s (%d transitions checked)\n", desiredName, key, len(transitions))
207209
return nil
208210
}
209211

0 commit comments

Comments
 (0)