Modifications pour le document KanbanBoardMacro
Modifié par Admin le 21/07/2025 - 09:07
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (4 modifications, 0 ajouts, 2 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -5,9 +5,6 @@ 5 5 * ##user## [optional, default=$xcontext.userReference] define the user for who tasks are assigned 6 6 * ##space## [optional, default=TaskManager] define the space to look for tasks 7 7 * ##project## [optional, default=] define the project to look for tasks 8 -* ##colors## [optional, default=green,blue,orange] define the colors of the Kanban columns 9 -* ##columns## [optional, default=ToDo,InProgress,Done] define the statuses to display as Kanban columns 10 -* ##columnWidth## [optional, default=32%] define the width of all Kanban column 11 11 12 12 Example: 13 13
- XWiki.WikiMacroClass[1]
-
- Code de la macro
-
... ... @@ -3,17 +3,8 @@ 3 3 ## The xwql variable is used by the awmkanban macro called from this one. 4 4 #set ($xwql = '') 5 5 #set($user = "$!{xcontext.macro.params.user}") 6 -#set ($columnWidth = "$!{xcontext.macro.params.columnWidth}") 7 -#set ($colors = "$!{xcontext.macro.params.colors}") 8 8 #if($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)") 7 + #set($xwql = "obj.assignee = '$escapetool.sql($user)'") 17 17 #end 18 18 #set($space = "$!{xcontext.macro.params.space}") 19 19 #if($space != '') ... ... @@ -24,28 +24,11 @@ 24 24 #end 25 25 #set($project = "$!{xcontext.macro.params.project}") 26 26 #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 35 35 #if ($xwql.length() > 0) 36 36 #set ($xwql = "$xwql and") 37 37 #end 38 - #set ($xwqlProjects)")21 + #set($xwql = "$xwql obj.project = '$escapetool.sql($project)'") 39 39 #end 40 -#set ($columns = "$!{xcontext.macro.params.columns}") 41 -{{awmkanban 42 - className="TaskManager.TaskManagerClass" 43 - category="status" 44 - displayedCategoryColumns="$!escapetool.xml($columns)" 45 - title="name" 46 - columns="assignee,progress,duedate" 47 - width="$!escapetool.xml($columnWidth)" 48 - colors=$escapetool.xml($colors) 49 -/}} 50 50 {{/velocity}} 51 51 25 +{{awmkanban className="TaskManager.TaskManagerClass" category="status" title="name" columns="assignee,progress,duedate" width="32%"/}} - Default categories
-
... ... @@ -1,1 +1,0 @@ 1 -Content
- XWiki.WikiMacroParameterClass[2]
-
- Type du paramètre
-
... ... @@ -1,1 +1,1 @@ 1 - com.xwiki.task.UserReferenceList1 +org.xwiki.user.UserReference
- XWiki.WikiMacroParameterClass[4]
-
- Type du paramètre
-
... ... @@ -1,1 +1,1 @@ 1 - java.util.List<com.xwiki.task.ProjectReference>1 +com.xwiki.task.ProjectReference
- XWiki.WikiMacroParameterClass[5]
-
- Type du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -java.util.List<com.xwiki.task.TaskStatus>
- XWiki.WikiMacroParameterClass[6]
-
- Valeur par défaut du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -green,blue,orange - Nom du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -colors - Paramètre obligatoire
-
... ... @@ -1,1 +1,0 @@ 1 -Non
- XWiki.WikiMacroParameterClass[7]
-
- Valeur par défaut du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -32% - Nom du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -columnWidth - Description du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -The width of each Kanban column, specified in any css units (example: 32%, 500px, 30em, etc..). - Paramètre obligatoire
-
... ... @@ -1,1 +1,0 @@ 1 -Non