From 36429ecd4c578f7886008390bd313713066695b6 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Thu, 29 Jan 2026 13:39:14 -0700 Subject: [PATCH 1/5] Set last reviewed date and reviewer for finding Update finding's last reviewed date and reviewer to maintain parity with UI behaviors --- dojo/api_v2/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index a083535ef42..addcf3acfa6 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -1099,6 +1099,9 @@ def notes(self, request, pk=None): note_type=note_type, ) note.save() + finding.last_reviewed = new_note.date + finding.last_reviewed_by = author + finding.save(update_fields=["last_reviewed", "last_reviewed_by"]) finding.notes.add(note) # Determine if we need to send any notifications for user mentioned process_tag_notifications( From 3ab9f5485ad58361606793213f2bfecf7139d39c Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:52:33 -0700 Subject: [PATCH 2/5] Apply suggestion from @Maffooch --- dojo/api_v2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index addcf3acfa6..7d724810c85 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -1099,7 +1099,7 @@ def notes(self, request, pk=None): note_type=note_type, ) note.save() - finding.last_reviewed = new_note.date + finding.last_reviewed = note.date finding.last_reviewed_by = author finding.save(update_fields=["last_reviewed", "last_reviewed_by"]) finding.notes.add(note) From e60af06aee2e1fc19571f8d360f1ea7f25c04784 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Thu, 29 Jan 2026 23:12:10 -0700 Subject: [PATCH 3/5] Set last reviewed date and author for finding Update finding with last reviewed date and author. --- dojo/jira_link/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dojo/jira_link/views.py b/dojo/jira_link/views.py index ebcc9616d4a..f930fd7e7d7 100644 --- a/dojo/jira_link/views.py +++ b/dojo/jira_link/views.py @@ -285,7 +285,9 @@ def check_for_and_create_comment(parsed_json): finding.notes.add(new_note) finding.jira_issue.jira_change = timezone.now() finding.jira_issue.save() - finding.save() + finding.last_reviewed = note.date + finding.last_reviewed_by = author + finding.save(update_fields=["last_reviewed", "last_reviewed_by"]) return None From 03722403ad42a7af3f6dd2e2b7428a1685930b5b Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Thu, 29 Jan 2026 23:12:51 -0700 Subject: [PATCH 4/5] Apply suggestions from code review --- dojo/jira_link/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/jira_link/views.py b/dojo/jira_link/views.py index f930fd7e7d7..46996badaf6 100644 --- a/dojo/jira_link/views.py +++ b/dojo/jira_link/views.py @@ -285,7 +285,7 @@ def check_for_and_create_comment(parsed_json): finding.notes.add(new_note) finding.jira_issue.jira_change = timezone.now() finding.jira_issue.save() - finding.last_reviewed = note.date + finding.last_reviewed = new_note.date finding.last_reviewed_by = author finding.save(update_fields=["last_reviewed", "last_reviewed_by"]) return None From ab6940d7c9ed4349af59e81261fbb8b7255b4d90 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 30 Jan 2026 18:00:41 -0700 Subject: [PATCH 5/5] Apply suggestion from @Maffooch --- dojo/api_v2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index 7d724810c85..fe7905cec3e 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -1101,7 +1101,7 @@ def notes(self, request, pk=None): note.save() finding.last_reviewed = note.date finding.last_reviewed_by = author - finding.save(update_fields=["last_reviewed", "last_reviewed_by"]) + finding.save(update_fields=["last_reviewed", "last_reviewed_by", "updated"]) finding.notes.add(note) # Determine if we need to send any notifications for user mentioned process_tag_notifications(