From 7416d1688f71da10fce4f02d35ad00dc67ea2af7 Mon Sep 17 00:00:00 2001 From: kitos Date: Wed, 15 Jul 2026 09:57:46 +0200 Subject: [PATCH] fix(jira): unwrap detection_result enum in the in_review comment Was rendering the raw Python enum repr (TestResult.detected) instead of the plain value, the only branch in _build_state_comment that skipped _enum_value(). Caught while verifying the system-gap fix on a live ticket. --- backend/app/services/jira_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/jira_service.py b/backend/app/services/jira_service.py index 5463a15..4fe77ae 100644 --- a/backend/app/services/jira_service.py +++ b/backend/app/services/jira_service.py @@ -506,7 +506,7 @@ def _build_state_comment( lines += [ "Blue Team has completed evaluation. Test is awaiting lead validation.", "", - f"*Detection Result:* {test.detection_result or 'N/A'}", + f"*Detection Result:* {_enum_value(test.detection_result) or 'N/A'}", ] if test.system_gaps: lines += ["", "h4. ⚠️ System Gap Flagged", test.system_gaps]