Changes between Version 8 and Version 9 of TaskjugglerPlugin


Ignore:
Timestamp:
Jan 19, 2008 8:40:03 PM (7 years ago)
Author:
adrian@…
Comment:

Added installation instructions - Requires additional review

Legend:

Unmodified
Added
Removed
Modified
  • TaskjugglerPlugin

    v8 v9  
    3030You can check out TaskjugglerPlugin from [http://trac-hacks.org/svn/taskjugglerplugin here] using Subversion, or [source:taskjugglerplugin browse the source] with Trac. 
    3131 
     32== Installation == 
     33 1. Create new custom fields 
     34{{{ 
     35[ticket-custom] 
     36macro_task=select 
     37macro_task.label=Macro Task 
     38macro_task.options=MacroTask 1| MacroTask2 #change <- by your macro Task 
     39macro_task.order=0 
     40 
     41estimatedhours = text 
     42estimatedhours.label = Plan  
     43estimatedhours.value = 0 
     44estimatedhours.order = 2 
     45 
     46hours = text 
     47hours.label = Add Days 
     48hours.value = 0 
     49hours.order = 3 
     50 
     51estimatedfinal = text 
     52estimatedfinal.label = Actual 
     53estimatedfinal.value = 0 
     54estimatedfinal.order=4 
     55 
     56totalhours = text 
     57totalhours.label = Nb days worked 
     58totalhours.value = 0 
     59totalhours.order = 5 
     60 
     61daysworked = textarea 
     62daysworked.label = days worked 
     63daysworked.cols = 23 
     64daysworked.rows = 6 
     65daysworked.order=6 
     66}}} 
     67 1. change the 2 settings on top of trac2TaskJuggler.php   
     68{{{ 
     69PDO('sqlite:/home/intranet/intra/t3_trac/db/trac.db'); <- set your config 
     70}}} 
     71 1. updload on trac2TaskJuggler.php to your server 
     72 1. edit trac.tjp for setting first_milestone macro AND as you want vacation, working hours 
     73 1. you can use your show_planning.sh to retrieve automaticly your data 
     74 1. the days worked area field will be set by the project manager or by the developper as explained here http://www.taskjuggler.org/manual-2.3.1/attribute_classes.html#TYPE_DATEINTERVAL one interval per line 
     75 1. you can add this js script into site_header.cs template to deliver information  see screenshots 
     76{{{ 
     77<script language="javascript" type="text/javascript"> 
     78function AddEventListener( elem, evt, func, capture){ 
     79    capture = capture || false; 
     80    if(elem.addEventListener) elem.addEventListener( evt, func, capture); 
     81    else elem.attachEvent('on'+evt, func); 
     82    return func; 
     83}; 
     84add_legend = function(){ 
     85    var x = document.getElementById('daysworked'); 
     86    if(x){ 
     87      var p = x.parentNode; 
     88      var n = document.createElement('div') 
     89      n.style.float="left"; 
     90      n.innerHTML="Valeurs possibles : <ul><li>yyyy-mm-dd</li><li>yyyy-mm-dd - yyyy-mm-dd &nbsp;&nbsp;<u>/!\\</u> la 2ème valeur n'est pas inclus dans le calcul</li><li>yyyy-mm-dd +?d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <u>/!\\</u> ? doit être remplacés par le nb de jour</li></ul>" ; 
     91      p.appendChild(n); 
     92    } 
     93} 
     94AddEventListener(window, 'load', add_legend) 
     95</script> 
     96}}} 
    3297 
    3398== Screenshots ==