Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.4
    • 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}}
      

      Attachments

        1. application-task.xar
          44 kB
          Jean SIMARD
        2. assignee.png
          65 kB
          Jean SIMARD
        3. dependencies.png
          96 kB
          Jean SIMARD
        4. kanban.png
          44 kB
          Jean SIMARD

        Activity

          People

            jsimard Jean SIMARD
            matthiaw Matthias Wegner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: