@@ -388,6 +388,9 @@ module DefectDojo
388
388
# scan_date: 'optional - date in which scan was kicked off (defaults to now)',
389
389
# verified: 'optional - flag finding as verified by a tester (defaults to false)',
390
390
# create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
391
+ # close_old_findings_product_scope: 'optional - flag to close old findings from engagement (defaults to false)',
392
+ # close_old_findings: 'optional - flag to close old findings, regardless of engagement (defaults to false)',
393
+ # push_to_jira: 'optional - flag to push findings to JIRA (defaults to false)'
391
394
# )
392
395
393
396
public_class_method def self . importscan ( opts = { } )
@@ -465,6 +468,12 @@ module DefectDojo
465
468
466
469
opts [ :create_finding_groups ] ? ( http_body [ :create_finding_groups_for_all_findings ] = true ) : ( http_body [ :create_finding_groups_for_all_findings ] = false )
467
470
471
+ opts [ :close_old_findings_product_scope ] ? ( http_body [ :close_old_findings_product_scope ] = true ) : ( http_body [ :close_old_findings_product_scope ] = false )
472
+
473
+ opts [ :close_old_findings ] ? ( http_body [ :close_old_findings ] = true ) : ( http_body [ :close_old_findings ] = false )
474
+
475
+ opts [ :push_to_jira ] ? ( http_body [ :push_to_jira ] = true ) : ( http_body [ :push_to_jira ] = false )
476
+
468
477
api_path = 'import-scan/'
469
478
api_path = 'importscan/' if api_version == 'v1'
470
479
@@ -489,7 +498,10 @@ module DefectDojo
489
498
# minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
490
499
# scan_date: 'optional - date in which scan was kicked off (defaults to now)',
491
500
# verified: 'optional - flag finding as verified by a tester (defaults to false)',
492
- # create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
501
+ # create_finding_groups: 'optional - flag to create finding groups (defaults to false)',
502
+ # close_old_findings_product_scope: 'optional - flag to close old findings from engagement (defaults to false)',
503
+ # close_old_findings: 'optional - flag to close old findings, regardless of engagement (defaults to false)',
504
+ # push_to_jira: 'optional - flag to push findings to JIRA (defaults to false)'
493
505
# )
494
506
495
507
public_class_method def self . reimportscan ( opts = { } )
@@ -570,6 +582,12 @@ module DefectDojo
570
582
571
583
opts [ :create_finding_groups ] ? ( http_body [ :create_finding_groups_for_all_findings ] = true ) : ( http_body [ :create_finding_groups_for_all_findings ] = false )
572
584
585
+ opts [ :close_old_findings_product_scope ] ? ( http_body [ :close_old_findings_product_scope ] = true ) : ( http_body [ :close_old_findings_product_scope ] = false )
586
+
587
+ opts [ :close_old_findings ] ? ( http_body [ :close_old_findings ] = true ) : ( http_body [ :close_old_findings ] = false )
588
+
589
+ opts [ :push_to_jira ] ? ( http_body [ :push_to_jira ] = true ) : ( http_body [ :push_to_jira ] = false )
590
+
573
591
api_path = 'reimport-scan/'
574
592
api_path = 'reimportscan/' if api_version == 'v1'
575
593
@@ -726,7 +744,10 @@ module DefectDojo
726
744
minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
727
745
scan_date: 'optional - date in which scan was kicked off (defaults to now)',
728
746
verified: 'optional - flag finding as verified by a tester (defaults to false)',
729
- create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
747
+ create_finding_groups: 'optional - flag to create finding groups (defaults to false)',
748
+ close_old_findings_product_scope: 'optional - flag to close old findings from engagement (defaults to false)',
749
+ close_old_findings: 'optional - flag to close old findings, regardless of engagement (defaults to false)',
750
+ push_to_jira: 'optional - flag to push findings to JIRA (defaults to false)'
730
751
)
731
752
732
753
reimportscan_response = #{ self } .reimportscan(
@@ -739,7 +760,10 @@ module DefectDojo
739
760
minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
740
761
scan_date: 'optional - date in which scan was kicked off (defaults to now)',
741
762
verified: 'optional - flag finding as verified by a tester (defaults to false)',
742
- create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
763
+ create_finding_groups: 'optional - flag to create finding groups (defaults to false)',
764
+ close_old_findings_product_scope: 'optional - flag to close old findings from engagement (defaults to false)',
765
+ close_old_findings: 'optional - flag to close old findings, regardless of engagement (defaults to false)',
766
+ push_to_jira: 'optional - flag to push findings to JIRA (defaults to false)'
743
767
)
744
768
745
769
finding_list = #{ self } .finding_list(
0 commit comments