Skip to content

Commit

Permalink
Merge pull request #10483 from DefectDojo/bugfix
Browse files Browse the repository at this point in the history
Bugfix -> Dev: Release 2.36.0
  • Loading branch information
Maffooch authored Jul 1, 2024
2 parents 34d87a1 + 6d4772a commit a9b0a53
Show file tree
Hide file tree
Showing 6 changed files with 828 additions and 531 deletions.
8 changes: 7 additions & 1 deletion dojo/jira_link/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,13 @@ def jira_environment(obj):
if isinstance(obj, Finding):
return "\n".join([str(endpoint) for endpoint in obj.endpoints.all()])
elif isinstance(obj, Finding_Group):
return "\n".join([jira_environment(finding) for finding in obj.findings.all()])
envs = [
jira_environment(finding)
for finding in obj.findings.all()
]

jira_environments = [env for env in envs if env]
return "\n".join(jira_environments)
else:
return ''

Expand Down
Loading

0 comments on commit a9b0a53

Please sign in to comment.