Skip to content

fix(jira): fall back to transition when subtask delete returns 403#475

Merged
zbigniewsobiecki merged 1 commit intodevfrom
fix/jira-delete-403-fallback
Feb 22, 2026
Merged

fix(jira): fall back to transition when subtask delete returns 403#475
zbigniewsobiecki merged 1 commit intodevfrom
fix/jira-delete-403-fallback

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • When deleteIssue() fails with 403 (missing "Delete Issues" permission), fall back to transitioning the subtask to a terminal status instead of silently failing
  • Terminal statuses are tried in priority order: Cancelled > Won't Do > Rejected > Closed > Done (Done last since it implies work was completed, misleading for descoped items)
  • Refactor webhook handlers in src/router/index.ts to extract helper functions (isSelfAuthoredTrelloComment, processTrelloWebhookEvent, isSelfAuthoredGitHubComment, fireGitHubAckReaction, processGitHubWebhookEvent, isSelfAuthoredJiraComment), resolving all 3 pre-existing cognitive complexity lint warnings

Test plan

  • 4 new test cases for deleteChecklistItem fallback behavior
  • npm run typecheck — clean
  • npm run lint — clean (0 warnings, down from 3)
  • npm test — 2532 tests pass

🤖 Generated with Claude Code

When `deleteIssue()` fails with 403 (missing "Delete Issues" permission),
fall back to transitioning the subtask to a terminal status (Cancelled,
Won't Do, Rejected, Closed, or Done — in priority order).

Also refactor webhook handlers in router/index.ts to extract helper
functions, resolving all 3 pre-existing cognitive complexity warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit 4ed60be into dev Feb 22, 2026
5 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the fix/jira-delete-403-fallback branch February 22, 2026 13:22
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.

1 participant