fixed completed instances filter w/ burnettk

This commit is contained in:
jasquat 2022-12-20 15:41:01 -05:00
parent d74e38e840
commit dfe958d386
1 changed files with 5 additions and 1 deletions

View File

@ -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(