@@ -32,8 +32,8 @@ def expire_now(risk_acceptance):
32
32
33
33
if risk_acceptance .restart_sla_expired :
34
34
finding .sla_start_date = timezone .now ().date ()
35
-
36
- finding . save ( dedupe_option = False )
35
+ # this method both saves and pushed to JIRA (no other post processing)
36
+ jira_helper . save_and_push_to_jira ( finding )
37
37
38
38
reactivated_findings .append (finding )
39
39
else :
@@ -71,7 +71,8 @@ def reinstate(risk_acceptance, old_expiration_date):
71
71
finding .risk_accepted = True
72
72
# Update any endpoint statuses on each of the findings
73
73
update_endpoint_statuses (finding , accept_risk = True )
74
- finding .save (dedupe_option = False )
74
+ # this method both saves and pushed to JIRA (no other post processing)
75
+ jira_helper .save_and_push_to_jira (finding )
75
76
reinstated_findings .append (finding )
76
77
else :
77
78
logger .debug ("%i:%s: already inactive, not making any changes" , finding .id , finding )
@@ -111,7 +112,8 @@ def remove_finding_from_risk_acceptance(user: Dojo_User, risk_acceptance: Risk_A
111
112
finding .risk_accepted = False
112
113
# Update any endpoint statuses on each of the findings
113
114
update_endpoint_statuses (finding , accept_risk = False )
114
- finding .save (dedupe_option = False )
115
+ # this method both saves and pushed to JIRA (no other post processing)
116
+ jira_helper .save_and_push_to_jira (finding )
115
117
# best effort jira integration, no status changes
116
118
post_jira_comments (risk_acceptance , [finding ], unaccepted_message_creator )
117
119
# Add a note to reflect that the finding was removed from the risk acceptance
0 commit comments