We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50327a7 commit b8fa7a4Copy full SHA for b8fa7a4
1 file changed
dojo/jira_link/helper.py
@@ -618,7 +618,13 @@ def jira_environment(obj):
618
if isinstance(obj, Finding):
619
return "\n".join([str(endpoint) for endpoint in obj.endpoints.all()])
620
elif isinstance(obj, Finding_Group):
621
- return "\n".join([jira_environment(finding) for finding in obj.findings.all()])
+ envs = [
622
+ jira_environment(finding)
623
+ for finding in obj.findings.all()
624
+ ]
625
+
626
+ jira_environments = [env for env in envs if env]
627
+ return "\n".join(jira_environments)
628
else:
629
return ''
630
0 commit comments