diff --git a/.last-branch b/.last-branch index 2d75690..b7e5a1e 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260207-02-wiki-documentation +v20260209-01-fix-ticket-description diff --git a/containers/backupchecks/src/backend/app/changelog.py b/containers/backupchecks/src/backend/app/changelog.py index dbc3132..4635aef 100644 --- a/containers/backupchecks/src/backend/app/changelog.py +++ b/containers/backupchecks/src/backend/app/changelog.py @@ -3,6 +3,29 @@ Changelog data structure for Backupchecks """ CHANGELOG = [ + { + "version": "v0.1.24", + "date": "2026-02-09", + "summary": "Bug fix release addressing Autotask ticket description field being cleared when resolving tickets.", + "sections": [ + { + "title": "Bug Fixes", + "type": "bugfix", + "subsections": [ + { + "subtitle": "Autotask Integration", + "changes": [ + "Fixed Autotask ticket description being cleared when resolving tickets via the update_ticket_resolution_safe function", + "Root cause: The description field was not included in the PUT payload when updating ticket resolution, causing Autotask API to set it to NULL", + "Solution: Added 'description' to the optional_fields list so it is preserved from GET response and included in PUT request", + "Impact: Ticket descriptions now remain intact when marking Autotask tickets as resolved", + "Location: containers/backupchecks/src/backend/app/integrations/autotask/client.py line 672" + ] + } + ] + } + ] + }, { "version": "v0.1.23", "date": "2026-02-09", diff --git a/containers/backupchecks/src/backend/app/integrations/autotask/client.py b/containers/backupchecks/src/backend/app/integrations/autotask/client.py index 1e353b1..c099eaa 100644 --- a/containers/backupchecks/src/backend/app/integrations/autotask/client.py +++ b/containers/backupchecks/src/backend/app/integrations/autotask/client.py @@ -669,6 +669,7 @@ class AutotaskClient: "companyID", "queueID", "title", + "description", "priority", "dueDateTime", "ticketCategory", diff --git a/docs/changelog-claude.md b/docs/changelog-claude.md index 5e4e2a7..1a386e3 100644 --- a/docs/changelog-claude.md +++ b/docs/changelog-claude.md @@ -4,6 +4,9 @@ This file documents all changes made to this project via Claude Code. ## [2026-02-09] +### Fixed +- Fixed Autotask ticket description being set to NULL when resolving tickets via `update_ticket_resolution_safe` by adding "description" to the optional_fields list, ensuring the original description is preserved during PUT operations + ### Changed - Updated `docs/changelog.md` with comprehensive v0.1.23 release notes consolidating all changes from 2026-02-06 through 2026-02-08 (Documentation System, Audit Logging, Timezone-Aware Display, Autotask Improvements, Environment Identification, Bug Fixes) - Updated `containers/backupchecks/src/backend/app/changelog.py` with v0.1.23 entry in Python structure for website display (8 sections with subsections matching changelog.md content) diff --git a/docs/changelog.md b/docs/changelog.md index 00af03a..f85a124 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,14 @@ +## v0.1.24 + +### Bug Fixes + +**Autotask Integration:** +- Fixed Autotask ticket description being cleared when resolving tickets + - Root cause: The `update_ticket_resolution_safe` function was performing a GET to retrieve the ticket, then a PUT to update the resolution field, but the `description` field was not included in the PUT payload + - Impact: When clicking "Resolve" on an Autotask ticket, the description would be set to NULL by the Autotask API + - Solution: Added `description` to the `optional_fields` list in `update_ticket_resolution_safe` so the original description is preserved from the GET response and included in the PUT request + - Location: `containers/backupchecks/src/backend/app/integrations/autotask/client.py` line 672 + ## v0.1.23 This comprehensive release introduces a complete built-in documentation system with 33 pages covering all features, enhanced audit logging for compliance and troubleshooting, timezone-aware datetime display throughout the application, and numerous Autotask PSA integration improvements for better usability and workflow efficiency. diff --git a/version.txt b/version.txt index 785740c..9b95a5f 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v0.1.23 +v0.1.24