... |
... |
@@ -1,6 +1,6 @@ |
1 |
1 |
{{groovy}} |
2 |
2 |
def tags = binding.variables['tags'] |
3 |
|
-def includeTags = tags*.toLowerCase().collect { it.replaceAll('_', ' ') } |
|
3 |
+def includeTags = tags?.split(',')*.trim()*.toLowerCase().findAll { it } |
4 |
4 |
|
5 |
5 |
def maxCount = 100 |
6 |
6 |
def hql = """ |
... |
... |
@@ -59,12 +59,4 @@ |
59 |
59 |
|
60 |
60 |
if (results.isEmpty()) { |
61 |
61 |
if (includeTags) { |
62 |
|
- println "⚠️ No incidents found with selected tag(s): ${tags}" |
63 |
|
- } else { |
64 |
|
- println "⚠️ No incidents to display." |
65 |
|
- } |
66 |
|
-} else { |
67 |
|
- println results.join("\n\n") |
68 |
|
-} |
69 |
|
-{{/groovy}} |
70 |
70 |
|