The TaskJuggler User Manual

Project Management beyond Gantt Chart Drawing


<< journalmode << Table Of Contents >> leaves >>


Keyword leaveallowance

This keyword has not yet been fully tested yet. You are welcome to try it, but it may lead to wrong results. The syntax may still change with future versions. The developers appreciate any feedback on this keyword.

Purpose

Add or subtract leave allowances. Currently, only allowances for the annual leaves are supported. Allowances can be negative to deal with expired allowances. The leaveallowancebalance report column can be used to report the current annual leave balance.

Leaves outside of the project period are silently ignored and will not be considered in the leave balance calculation. Therefore, leave allowances are only allowed within the project period.

Syntax leaveallowances annual <date> [-] <value> (min | h | d | w | m | y) [, annual <date> [-] <value> (min | h | d | w | m | y)...]
Arguments date
See date for details.
value
A floating point or integer number
min
minutes
h
hours
d
days
w
weeks
m
months
y
years
Context resource, supplement (resource)

project "Annual Leave" 2011-12-19 +1y {
  now 2012-07-01
}

leaves holiday "Christmas" 2011-12-24 +3d,
       holiday "New Year" 2011-12-31 +3d

shift s1 "Shift 1" {
    leaves annual 2011-12-19 +3w,
           special 2012-01-12 +1d
}

resource team "Team" {
  leaveallowances annual 2011-12-19 20d
  leaves holiday 2012-01-06

  resource r1 "R1" {
    leaves annual 2011-12-19 +3w,
           special 2012-01-12 +1d
  }
  resource r2 "R2" {
    leaveallowances annual 2012-06-01 -10d
    leaves sick 2012-01-04 +2d,
           unpaid 2012-01-10 +3d
  }
}
resource r3 "R3" {
  shifts s1 2011-12-19 +3w
  leaves sick 2012-01-04 +2d
}

task "foo"

resourcereport "." {
  formats html
  columns name, annualleave, annualleavebalance, sickleave, specialleave, unpaidleave
}


<< journalmode << Table Of Contents >> leaves >>


Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 by Chris Schlaeger <cs@taskjuggler.org>.TaskJuggler is a trademark of Chris Schlaeger.