Skip to content

fix: add close_code and close_notes when resolving SNow incident#136

Merged
toharris-rh merged 1 commit into
mainfrom
fix/snow-close-incident-missing-fields
Jun 16, 2026
Merged

fix: add close_code and close_notes when resolving SNow incident#136
toharris-rh merged 1 commit into
mainfrom
fix/snow-close-incident-missing-fields

Conversation

@toharris-rh

Copy link
Copy Markdown
Owner

Summary

  • ServiceNow data policy requires close_code and close_notes when moving an incident to Resolved (state 6) — without them the PATCH returns HTTP 403.
  • Adds close_code: "Solved (Permanently)" and close_notes (same content as the success work note) to the PATCH payload in update_incident.yml when inc_outcome == success.
  • Both fields use omit for non-success outcomes so the In Progress / failure path is unaffected.

Closes #135

🤖 Generated with Claude Code

ServiceNow data policy requires both fields when setting state to
Resolved (6). Omitted for non-success outcomes so the failure path
is unaffected.

Closes #135

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@toharris-rh toharris-rh requested a review from ericcames as a code owner June 16, 2026 22:44
@toharris-rh toharris-rh merged commit 9f90c23 into main Jun 16, 2026
2 checks passed
@toharris-rh toharris-rh deleted the fix/snow-close-incident-missing-fields branch June 16, 2026 22:45
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.

SNow close incident fails — missing close_code and close_notes fields

1 participant