Skip to content

Commit c70e5a1

Browse files
jira: add endpoint status to description (#12858)
* jira: add endpoint status to description * record vcrs
1 parent 9b9ac7c commit c70e5a1

45 files changed

Lines changed: 14438 additions & 14830 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dojo/templates/issue-trackers/jira_full/jira-description.tpl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% load navigation_tags %}
22
{% load display_tags %}
3+
{% load get_endpoint_status %}
34
{% url 'view_product' finding.test.engagement.product.id as product_url %}
45
{% url 'view_engagement' finding.test.engagement.id as engagement_url %}
56
{% url 'view_test' finding.test.id as test_url %}
@@ -44,13 +45,13 @@
4445

4546
{% if finding.endpoints.all %}
4647
*Systems/Endpoints*:
47-
{% for endpoint in finding.endpoints.all %}
48-
* {{ endpoint }}{% endfor %}
49-
{% comment %}
50-
we leave the endfor at the same line to avoid double line breaks i.e. too many blank lines
51-
{% endcomment %}
48+
||System/Endpoint||Status||
49+
{% for endpoint in finding|get_vulnerable_endpoints %}|{{ endpoint }}|{{ endpoint|endpoint_display_status:finding }}|
50+
{% endfor %}{% for endpoint in finding|get_mitigated_endpoints %}|{{ endpoint }}|{{ endpoint|endpoint_display_status:finding }}|
51+
{% endfor %}
5252
{%endif%}
5353

54+
5455
{% if finding.component_name %}
5556
*Vulnerable Component*: {{finding.component_name }} - {{ finding.component_version }}
5657
{% endif %}

dojo/templates/issue-trackers/jira_full/jira-finding-group-description.tpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% load navigation_tags %}
22
{% load display_tags %}
3+
{% load get_endpoint_status %}
34
{% url 'view_finding_group' finding_group.id as finding_group_url %}
45
{% url 'view_product' finding_group.test.engagement.product.id as product_url %}
56
{% url 'view_engagement' finding_group.test.engagement.id as engagement_url %}
@@ -48,8 +49,10 @@ h3. [{{ finding.title|jiraencode}}|{{ finding_url|full_url }}]
4849

4950
{% if finding.endpoints.all %}
5051
*Systems/Endpoints*:
51-
{% for endpoint in finding.endpoints.all %}
52-
* {{ endpoint }}{% endfor %}
52+
||System/Endpoint||Status||
53+
{% for endpoint in finding|get_vulnerable_endpoints %}|{{ endpoint }}|{{ endpoint|endpoint_display_status:finding }}|
54+
{% endfor %}{% for endpoint in finding|get_mitigated_endpoints %}|{{ endpoint }}|{{ endpoint|endpoint_display_status:finding }}|
55+
{% endfor %}
5356
{%endif%}
5457

5558
{% if finding.sast_source_object %}

unittests/vcr/jira/JIRAImportAndPushTestApi.test_create_edit_update_finding.yaml

Lines changed: 528 additions & 542 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_engagement_epic_creation.yaml

Lines changed: 49 additions & 51 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_engagement_epic_mapping_disabled_create_epic_and_push_findings.yaml

Lines changed: 236 additions & 230 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_engagement_epic_mapping_disabled_no_epic_and_push_findings.yaml

Lines changed: 236 additions & 230 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_engagement_epic_mapping_enabled_create_epic_and_push_findings.yaml

Lines changed: 346 additions & 346 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_engagement_epic_mapping_enabled_no_epic_and_push_findings.yaml

Lines changed: 236 additions & 230 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_groups_create_edit_update_finding.yaml

Lines changed: 1779 additions & 1818 deletions
Large diffs are not rendered by default.

unittests/vcr/jira/JIRAImportAndPushTestApi.test_groups_import_with_push_to_jira_not_verified_enforced_verified_globally_false_enforced_verified_jira_false.yaml

Lines changed: 291 additions & 298 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)