From 58dd2ce831ba0efb310ef6a0f886984325607fcb Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Mon, 9 Feb 2026 11:39:48 +0100 Subject: [PATCH] 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)