From dfe958d386f2368d183a08474c4d524928eadf12 Mon Sep 17 00:00:00 2001 From: jasquat Date: Tue, 20 Dec 2022 15:41:01 -0500 Subject: [PATCH] fixed completed instances filter w/ burnettk --- .../services/process_instance_report_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_report_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_report_service.py index 773533ae2..d04b81f93 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_report_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_report_service.py @@ -380,7 +380,11 @@ class ProcessInstanceReportService: ProcessInstanceModel.status.in_(ProcessInstanceModel.terminal_statuses()) # type: ignore ) - if report_filter.with_relation_to_me is True: + if ( + not report_filter.with_tasks_completed_by_me + and not report_filter.with_tasks_assigned_to_my_group + and report_filter.with_relation_to_me is True + ): process_instance_query = process_instance_query.outerjoin( HumanTaskModel ).outerjoin(