Previous fix removed ALL resolved tickets from display, breaking audit trail. Users need to see which tickets were associated with historical runs, even after resolution. Solution: Two-source ticket display 1. Direct links (ticket_job_runs): Always show, even if resolved - Preserves audit trail - Shows tickets that were explicitly linked to runs 2. Active window (ticket_scopes): Only show unresolved - Prevents resolved tickets from appearing on NEW runs - Uses active_from_date without date-based resolved logic Changes: - Added direct_ticket_links map to fetch linked tickets per run - Query ticket_job_runs for audit trail tickets - Modified ticket_codes building to use both sources - Removed date-based resolved_date comparison (resd >= rd) Result: - Run 1 with ticket → ticket resolved → ticket still visible on Run 1 - Run 2 created → ticket NOT shown on Run 2 (correctly filtered) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| architecture.md | ||
| autotask_rest_api.md | ||
| backupchecks_autotask_integration_functional_design_living_document.md | ||
| backupchecks_autotask_integration_implementation_breakdown.md | ||
| backupchecks_autotask_integration_phase_2_implementation.md | ||
| changelog-claude.md | ||
| changelog.md | ||
| manifest.md | ||
| migrations.md | ||
| reporting-proposal.md | ||