Skip to content

Commit 5439f4e

Browse files
author
Aaron Weaver
authored
Merge pull request DefectDojo#205 from aaronweaver/master
Added Mitigation to Jira push and Jira links to engagement view.
2 parents fd63330 + ed2d89f commit 5439f4e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dojo/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ def long_desc(self):
659659
for e in self.endpoints.all():
660660
long_desc += str(e) + '\n\n'
661661
long_desc += '*Description*: \n' + self.description + '\n\n'
662+
long_desc += '*Mitigation*: \n' + self.mitigation + '\n\n'
662663
long_desc += '*Impact*: \n' + self.impact + '\n\n'
663664
long_desc += '*References*:' + self.references
664665
return long_desc

dojo/templates/dojo/view_eng.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "base.html" %}
22
{% load display_tags %}
3+
{% load get_config_setting %}
34
{% block content %}
45
<!-- start status bread crums -->
56
<ul id="progress-crumbs" class="breadcrumb">
@@ -406,6 +407,9 @@ <h4> Findings</h4>
406407
<th>Mitigation Date</th>
407408
<th>Verified</th>
408409
<th>Active</th>
410+
<{% if "ENABLE_JIRA"|get_config_setting %}
411+
<th>Jira</th>
412+
{% endif %}
409413
<th>Actions</th>
410414
</tr>
411415
</thead>
@@ -420,6 +424,11 @@ <h4> Findings</h4>
420424
<td>{{ finding.mitigated }}</td>
421425
<td>{{ finding.verified }}</td>
422426
<td>{{ finding.active }}</td>
427+
{% if "ENABLE_JIRA"|get_config_setting %}
428+
<td>
429+
<a href="{{finding.jira_conf.url}}/browse/{{finding.jira.jira_key}}" target="_blank"> {{finding.jira.jira_key}} </a>
430+
</td>
431+
{% endif %}
423432
<td>
424433
<div class="btn-group">
425434
<a class="btn btn-sm btn-primary"

0 commit comments

Comments
 (0)