Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
2.2
-
None
Description
Hi Devs,
for my personal Task Management i missed an Kanban-Board. Please feel free to use it. The only thing i miss is the order of the stati in the columns, so "open" is before "done". You find it attached:
{{velocity}}
#set($query = "from doc.object(TaskManager.TaskManagerClass) as document where doc.fullName <> 'TaskManager.TaskManagerTemplate' and document.assignee=:currentUser order by document.duedate asc")
#set($results = $services.query.xwql("$query").bindValue("currentUser", "$xcontext.getUserReference()").execute())
#set($propertyClass = $xwiki.getDocument($results.get(0)).getObject('TaskManager.TaskManagerClass').getxWikiClass().get("status"))
{{html}}
<table>
<tr>
#foreach($stat in $propertyClass.mapValues.entrySet())
<th>$stat.key</th>
#end
</tr>
<tr>
#foreach($stat in $propertyClass.mapValues.entrySet())
<td>
#foreach($result in $results)
#set($object = $xwiki.getDocument($result).getObject('TaskManager.TaskManagerClass'))
#set($objectName = $object.getProperty('name').value)
#set($objectStatus = $object.getProperty('status').value)
#set($objectDueDate = $datetool.format('dd.MMM.yyyy',$object.getProperty('duedate').value))
#if($objectStatus.equals($stat.key))
<a href="../../../..$xwiki.getDocument($result).getURL("view")">$xwiki.getDocument($result).getName()</a> $objectDueDate<BR/>
#end
#end
</td>
#end
</tr>
</table>
{{/html}}
[[All>>TaskManager.WebHome]]
{{/velocity}}