... |
... |
@@ -1,6 +1,11 @@ |
1 |
|
-{{groovy bindings="tags,max"}} |
2 |
|
-def includeTags = tags?.split(',')*.trim()*.toLowerCase() ?: [] |
3 |
|
-def maxCount = max?.toInteger() ?: 999 |
|
1 |
+{{groovy}} |
|
2 |
+/** |
|
3 |
+ * incidentGallery script macro |
|
4 |
+ * @param tags - comma-separated tags to filter (case-insensitive) |
|
5 |
+ * @param max - max incidents to display (optional) |
|
6 |
+ */ |
|
7 |
+def includeTags = parameters.tags?.split(',')*.trim()*.toLowerCase() ?: [] |
|
8 |
+def maxCount = parameters.max?.toInteger() ?: 999 |
4 |
4 |
|
5 |
5 |
def hql = """ |
6 |
6 |
select doc.fullName |