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 ?.split(',')*.trim()*.toLowerCase().findAll { it }3 +def includeTags = tags*.toLowerCase().collect { it.replaceAll('_', ' ') } 4 4 5 5 def maxCount = 100 6 6 def hql = """ ... ... @@ -59,4 +59,12 @@ 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}} 62 62 - Macro visibility
-
... ... @@ -1,1 +1,0 @@ 1 -Current Wiki
- XWiki.WikiMacroParameterClass[0]
-
- Parameter advanced
-
... ... @@ -1,1 +1,1 @@ 1 - Yes1 +No - Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -Job Discrimination - Parameter description
-
... ... @@ -1,1 +1,1 @@ 1 -tag s1 +Categorize by tag - Parameter type
-
... ... @@ -1,1 +1,1 @@ 1 - Wiki1 +java.util.List<macros.IncidentTag>