Découvrez les nouveautés de cette version : Fonctionnalités, améliorations et évolutions vous attendent ! 👉 Cliquez ici pour en savoir plus

Modifications pour le document KanbanBoardMacro

Modifié par Admin le 21/07/2025 - 09:07

Depuis la version 6.1
modifié par Admin
sur 21/07/2025 - 08:59
Commentaire de modification : Migrated property [executionIsolated] from class [XWiki.WikiMacroClass]
À la version 8.1
modifié par Admin
sur 21/07/2025 - 09:07
Commentaire de modification : Install extension [com.xwiki.task:application-task-ui/3.9.0]

Résumé

Détails

XWiki.WikiMacroClass[1]
Code de la macro
... ... @@ -6,7 +6,14 @@
6 6  #set ($columnWidth = "$!{xcontext.macro.params.columnWidth}")
7 7  #set ($colors = "$!{xcontext.macro.params.colors}")
8 8  #if($user != '')
9 - #set($xwql = "obj.assignee = '$escapetool.sql($user)'")
9 + #set ($users = $user.split(','))
10 + #foreach ($user in $users)
11 + #if ($xwql.length() > 0)
12 + #set ($xwql = "$xwql OR")
13 + #end
14 + #set ($xwql = "$xwql obj.assignee = '$escapetool.sql($user)'")
15 + #end
16 + #set ($xwql = "($xwql)")
10 10  #end
11 11  #set($space = "$!{xcontext.macro.params.space}")
12 12  #if($space != '')
... ... @@ -17,10 +17,18 @@
17 17  #end
18 18  #set($project = "$!{xcontext.macro.params.project}")
19 19  #if($project != '')
27 + #set ($xwqlProjects = '')
28 + #set ($projects = $project.split(','))
29 + #foreach ($project in $projects)
30 + #if ($xwqlProjects.length() > 0)
31 + #set ($xwqlProjects = "$xwqlProjects OR")
32 + #end
33 + #set ($xwqlProjects = "$xwqlProjects obj.project = '$escapetool.sql($project)'")
34 + #end
20 20   #if ($xwql.length() > 0)
21 21   #set ($xwql = "$xwql and")
22 22   #end
23 - #set($xwql = "$xwql obj.project = '$escapetool.sql($project)'")
38 + #set ($xwql = "$xwql ($xwqlProjects)")
24 24  #end
25 25  #set ($columns = "$!{xcontext.macro.params.columns}")
26 26  {{awmkanban
XWiki.WikiMacroParameterClass[2]
Type du paramètre
... ... @@ -1,1 +1,1 @@
1 -org.xwiki.user.UserReference
1 +com.xwiki.task.UserReferenceList
XWiki.WikiMacroParameterClass[4]
Type du paramètre
... ... @@ -1,1 +1,1 @@
1 -com.xwiki.task.ProjectReference
1 +java.util.List<com.xwiki.task.ProjectReference>
XWiki.WikiMacroParameterClass[5]
Type du paramètre
... ... @@ -1,0 +1,1 @@
1 +java.util.List<com.xwiki.task.TaskStatus>