Skip to content

Commit ee11169

Browse files
Clarify JIRA accepted and false positives mappings (#12593)
* Clarify JIRA accepted and false positives mappings * Clarify JIRA accepted and false positives mappings * Clarify JIRA accepted and false positives mappings * Update dojo/db_migrations/0230_alter_jira_instance_accepted_mapping_resolution_and_more.py Co-authored-by: Harold Blankenship <36673698+hblankenship@users.noreply.github.com> * sync with migration --------- Co-authored-by: Harold Blankenship <36673698+hblankenship@users.noreply.github.com>
1 parent 1612a27 commit ee11169

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 5.1.8 on 2025-06-11 17:55
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('dojo', '0229_alter_finding_unique_id_from_tool'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='jira_instance',
15+
name='accepted_mapping_resolution',
16+
field=models.CharField(blank=True, verbose_name="Risk Accepted resolution mapping", help_text='JIRA issues that are closed in JIRA with one of these resolutions will result in the Finding becoming Risk Accepted in Defect Dojo. This Risk Acceptance will not have an expiration date. This mapping is not used when Findings are pushed to JIRA. In that case the Risk Accepted Findings are closed in JIRA and JIRA sets the default resolution.', max_length=300, null=True),
17+
),
18+
migrations.AlterField(
19+
model_name='jira_instance',
20+
name='false_positive_mapping_resolution',
21+
field=models.CharField(blank=True, verbose_name="False Positive resolution mapping", help_text='JIRA issues that are closed in JIRA with one of these resolutions will result in the Finding being marked as False Positive Defect Dojo. This mapping is not used when Findings are pushed to JIRA. In that case the Finding is closed in JIRA and JIRA sets the default resolution.', max_length=300, null=True),
22+
),
23+
]

dojo/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,8 +3873,8 @@ class JIRA_Instance(models.Model):
38733873
high_mapping_severity = models.CharField(max_length=200, help_text=_("Maps to the 'Priority' field in Jira. For example: High"))
38743874
critical_mapping_severity = models.CharField(max_length=200, help_text=_("Maps to the 'Priority' field in Jira. For example: Critical"))
38753875
finding_text = models.TextField(null=True, blank=True, help_text=_("Additional text that will be added to the finding in Jira. For example including how the finding was created or who to contact for more information."))
3876-
accepted_mapping_resolution = models.CharField(null=True, blank=True, max_length=300, help_text=_("JIRA resolution names (comma-separated values) that maps to an Accepted Finding"))
3877-
false_positive_mapping_resolution = models.CharField(null=True, blank=True, max_length=300, help_text=_("JIRA resolution names (comma-separated values) that maps to a False Positive Finding"))
3876+
accepted_mapping_resolution = models.CharField(null=True, blank=True, max_length=300, verbose_name="Risk Accepted resolution mapping", help_text=_("JIRA issues that are closed in JIRA with one of these resolutions will result in the Finding becoming Risk Accepted in Defect Dojo. This Risk Acceptance will not have an expiration date. This mapping is not used when Findings are pushed to JIRA. In that case the Risk Accepted Findings are closed in JIRA and JIRA sets the default resolution."))
3877+
false_positive_mapping_resolution = models.CharField(null=True, blank=True, verbose_name="False Positive resolution mapping", max_length=300, help_text=_("JIRA issues that are closed in JIRA with one of these resolutions will result in the Finding being marked as False Positive Defect Dojo. This mapping is not used when Findings are pushed to JIRA. In that case the Finding is closed in JIRA and JIRA sets the default resolution."))
38783878
global_jira_sla_notification = models.BooleanField(default=True, blank=False, verbose_name=_("Globally send SLA notifications as comment?"), help_text=_("This setting can be overidden at the Product level"))
38793879
finding_jira_sync = models.BooleanField(default=False, blank=False, verbose_name=_("Automatically sync Findings with JIRA?"), help_text=_("If enabled, this will sync changes to a Finding automatically to JIRA"))
38803880

0 commit comments

Comments
 (0)