diff --git a/.last-branch b/.last-branch index edd3b74..4be34b0 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260115-02-autotask-settings-migration-fix +v20260115-03-autotask-settings-ui diff --git a/containers/backupchecks/src/templates/main/settings.html b/containers/backupchecks/src/templates/main/settings.html index 318ca9b..fe58e03 100644 --- a/containers/backupchecks/src/templates/main/settings.html +++ b/containers/backupchecks/src/templates/main/settings.html @@ -319,6 +319,138 @@ {% endif %} +{% if section == 'integrations' %} +
+
+
Autotask
+
+
+ + +
+ +
+
+ + +
Use Sandbox for testing first.
+
+ +
+ + +
+ +
+ + +
Leave empty to keep the existing password.
+
+ +
+ + +
+ +
+ + +
Required later for creating stable links to Job Details pages.
+
+
+
+
+ +
+
Ticket defaults
+
+
+
+ + +
Requires refreshed reference data.
+
+ +
+ + +
Requires refreshed reference data.
+
+ +
+ + +
+ +
+ + +
+
+
Priority values are Autotask priority IDs.
+
+
+ +
+ +
+
+ +
+
Diagnostics & reference data
+
+
+
+
Last reference data sync
+
+ {% if autotask_last_sync_at %} + {{ autotask_last_sync_at }} + {% else %} + never + {% endif %} +
+
+ Cached Queues: {{ autotask_queues|length }}
+ Cached Ticket Sources: {{ autotask_ticket_sources|length }} +
+
+
+
+
+ +
+
+ +
+
+
Refresh loads Queues and Ticket Sources from Autotask for dropdown usage.
+
+
+
+
+{% endif %} + + {% if section == 'maintenance' %}
diff --git a/docs/changelog.md b/docs/changelog.md index e0197d5..0beeca2 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,23 +1,30 @@ ## v20260115-01-autotask-settings -Changes: +### Changes: - Added initial Autotask integration settings structure to Backupchecks. - Introduced new system settings demonstrating Autotask configuration fields such as enable toggle, environment selection, credentials, tracking identifier, and Backupchecks base URL. - Prepared data model and persistence layer to store Autotask-related configuration. - Laid groundwork for future validation and integration logic without enabling ticket creation or customer mapping. - Ensured changes are limited to configuration foundations only, keeping Phase 1 scope intact. -## +## v20260115-02-autotask-settings-migration-fix -v20260115-02-autotask-settings-migration-fix - -Changes: +### Changes: - Fixed Autotask system settings migration so it is always executed during application startup. - Added safe, idempotent column existence checks to prevent startup failures on re-deployments. - Ensured all Autotask-related system_settings columns are created before being queried. - Prevented aborted database transactions caused by missing columns during settings initialization. - Improved overall stability of the Settings page when Autotask integration is enabled. +## v20260115-03-autotask-settings-ui + +### Changes: +- Added visible Autotask configuration section under Settings → Integrations. +- Implemented form fields for enabling Autotask integration, environment selection, API credentials, tracking identifier, and Backupchecks base URL. +- Wired Autotask settings to SystemSettings for loading and saving configuration values. +- Added Diagnostics & Reference Data section with actions for testing the Autotask connection and refreshing reference data. +- Kept all functionality strictly within Phase 1 scope without introducing ticket or customer logic. + *** ## v0.1.21