From 58dd2ce831ba0efb310ef6a0f886984325607fcb Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Mon, 9 Feb 2026 11:39:48 +0100 Subject: [PATCH 1/4] Fix Autotask ticket description being cleared on resolve When resolving Autotask tickets via the update_ticket_resolution_safe function, the description field was not included in the PUT payload, causing it to be set to NULL by Autotask. Fixed by adding "description" to the optional_fields list so it is preserved from the GET response and included in the PUT request. Co-Authored-By: Claude Sonnet 4.5 --- .../src/backend/app/integrations/autotask/client.py | 1 + docs/changelog-claude.md | 3 +++ 2 files changed, 4 insertions(+) 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) From dee99a920d4e64b0761c6cb1febfc3817a4d179f Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Mon, 9 Feb 2026 12:21:34 +0100 Subject: [PATCH 2/4] Auto-commit local changes before build (2026-02-09 12:21:34) --- .last-branch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 82b96c34489e5e12e0da5461a38c74c571faf0a1 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Mon, 9 Feb 2026 13:02:02 +0100 Subject: [PATCH 3/4] Add v0.1.24 to changelog for ticket description fix Updated both docs/changelog.md and changelog.py with v0.1.24 release notes documenting the Autotask ticket description fix. Co-Authored-By: Claude Sonnet 4.5 --- .../backupchecks/src/backend/app/changelog.py | 23 +++++++++++++++++++ docs/changelog.md | 11 +++++++++ 2 files changed, 34 insertions(+) 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/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. From bb701d5f00495f3220b212351d29f4ba906ee5e5 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Mon, 9 Feb 2026 13:03:06 +0100 Subject: [PATCH 4/4] Release v0.1.24 on branch v20260209-01-fix-ticket-description (bump type 1) --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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