From 55a1291b1db8a8549f5676a4f671d3d66e5fb795 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:10:20 +0530 Subject: [PATCH] fix: inbox issue archival (#1538) * chore: add triggered by details for notifications * dev: update issue activity json to include extra fields * dev: fix inboc issue archival * dev: update the filter for closing issues --- apiserver/plane/bgtasks/issue_automation_task.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apiserver/plane/bgtasks/issue_automation_task.py b/apiserver/plane/bgtasks/issue_automation_task.py index d051b5118..bb2528863 100644 --- a/apiserver/plane/bgtasks/issue_automation_task.py +++ b/apiserver/plane/bgtasks/issue_automation_task.py @@ -49,6 +49,11 @@ def archive_old_issues(): Q(issue_module__module__target_date__lt=timezone.now().date()) & Q(issue_module__isnull=False) ), + ).filter( + Q(issue_inbox__status=1) + | Q(issue_inbox__status=-1) + | Q(issue_inbox__status=2) + | Q(issue_inbox__isnull=True) ) # Check if Issues @@ -111,6 +116,11 @@ def close_old_issues(): Q(issue_module__module__target_date__lt=timezone.now().date()) & Q(issue_module__isnull=False) ), + ).filter( + Q(issue_inbox__status=1) + | Q(issue_inbox__status=-1) + | Q(issue_inbox__status=2) + | Q(issue_inbox__isnull=True) ) # Check if Issues