Template:TaskList

    Inhaltsverzeichnis
    keine Gliederung

    Version seit 15:15, 21 Nov 2024

    zu dieser Version.

    Zurück zu Versionshistorie.

    Zeige aktuelle Version

    Click on column headers to sort list.

    var IsLate='false'; var BackColor = 'white'; 
       var todaysdate = date.format(date.changetimezone(date.now, user.timezone), "yyyy/MM/dd"); 
       if(wiki.pageexists(page.path ..'/Assigned_Tasks')) 
       { if(#wiki.getpage(page.path ..'/Assigned_Tasks').subpages > 0) 
       { foreach(var p in wiki.getpage(page.path ..'/Assigned_Tasks').subpages) 
       { var utext = xml.text(wiki.page(p.path),"//*[@class='username']"); 
       var stext = xml.text(wiki.page(p.path),"//*[@class='summary']"); 
       var sdtext = xml.text(wiki.page(p.path),"//*[@class='startdate']"); 
       var edtext = xml.text(wiki.page(p.path),"//*[@class='enddate']"); 
       var prtext = xml.text(wiki.page(p.path),"//*[@class='priority']"); 
       var sttext = xml.text(wiki.page(p.path),"//*[@class='status']"); 
       if(date.IsAfter(todaysdate,edtext)) { let IsLate = 'true'; let BackColor = 'red'; } 
       else { if(date.IsSameDay(todaysdate,edtext)) { let IsLate = 'false'; let BackColor = 'yellow'; } 
       else { let IsLate = 'false'; let BackColor = 'white'; } } if(string.toupper(string.trim(sttext)) == 'C') { }
       else { } } } else { 'There are currently no tasks assigned' } } else { 'There are currently no tasks assigned' } 
       
    
    'User Name' 'Task Title' 'Summary' 'Start Date' 'End Date' 'Priority' 'Status'
    utext; web.link(p.uri, p.title); stext; sdtext; edtext; prtext; sttext;
    utext; wiki.edit{label: p.title, path: p.path, button: 'false'}; stext; sdtext; edtext; prtext; sttext;
    Deki Appliance - Powered by TurnKey Linux