Changes for page IncidentGallery
Summary
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -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 - Macro visibility
-
... ... @@ -1,0 +1,1 @@ 1 +Current Wiki
- XWiki.WikiMacroParameterClass[0]
-
- Parameter advanced
-
... ... @@ -1,1 +1,1 @@ 1 - No1 +Yes - Parameter default value
-
... ... @@ -1,0 +1,1 @@ 1 +Job Discrimination - Parameter description
-
... ... @@ -1,1 +1,1 @@ 1 - Categorize by tag1 +tags - Parameter type
-
... ... @@ -1,1 +1,1 @@ 1 - java.util.List<macros.IncidentTag>1 +Wiki