Skip to content
Snippets Groups Projects
Commit 56b7307e authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Initial strawman

parents
No related branches found
No related tags found
No related merge requests found
/generated
*~
Makefile 0 → 100644
TJI = $(wildcard *.tji)
all: TJ3
tmp generated:
mkdir $@
TJ3: generated/timestamp
generated/timestamp: planning.tjp $(TJI) | generated
LC_CTYPE=C.UTF-8 tj3 -o generated planning.tjp
touch $@
pre-commit: TJ3
clean:
rm -rf generated
rm -f *~
task planning_prototype "Prototype of new planning site" {
start 2020-10-19
task webserver "Create webserver" {
effort 4h
allocate andersb limits { dailymax 2h }
}
task mockup "Create mockup" {
effort 2d
allocate andersb limits { dailymax 2h }
}
}
task prototyping_start "Start of planning prototype" {
start 2020-01-01
}
project planning "Planning" 2020-10-18 - 2027-09-11 {
timeformat "%Y-%b-%d"
# Sweden
timezone "Europe/Stockholm"
# Setup scenarios
scenario plan "Plan"
# Limit working days
workinghours sat,sun off
}
leaves holiday "Christmas" 2020-12-24+2d
# Top level container tasks
task milestones "Milestones" {}
task andersb "Anders Blomdell" { }
task andersn "Anders Nilsson" { }
task alexander "Alexander Pisarevskiy" { }
task teachers "Teachers" { }
include "resources.tji"
include "andersb.planning.tji" { taskprefix andersb }
include "report.tji"
\ No newline at end of file
navigator menu
navigator navbar {
hidereport @none
}
macro TaskTip [
tooltip istask() -8<-
'''Start: ''' <-query attribute='start'->
'''End: ''' <-query attribute='end'->
----
'''Resources:'''
<-query attribute='resources'->
----
'''Precursors: '''
<-query attribute='precursors'->
----
'''Followers: '''
<-query attribute='followers'->
->8-
]
# A traditional Gantt chart with a project overview.
taskreport overview "" {
header -8<-
== Projektöversikt ==
->8-
columns bsi { title 'BSI' },
name,
start,
end,
chart { scale quarter width 1200 ${TaskTip} }
timeformat "%Y-%m-%d"
loadunit shortauto
hideresource @all
sorttasks tree
footer -8<-
=== Status ===
->8-
}
macro YearlyOverview [
taskreport overview_${1} "" {
headline "Overview ${1}"
period ${1}-01-01 + 1y
columns bsi { title 'BSI' },
name,
start,
end,
chart { scale week width 1200 ${TaskTip} }
timeformat "%Y-%m-%d"
loadunit days
hideresource @all
hidetask ((plan.end < ${1}-01-01) | (%{${1}-01-01 + 1y} < plan.start))
sorttasks tree
}
]
# Resource allocation
resourcereport resources "" {
headline "Resource Allocation"
columns no,
name,
quarterly { width 1600 ${TaskTip} }
loadunit shortauto
# We only like to show leaf tasks for leaf resources.
hidetask ~(isleaf() & isleaf_())
sorttasks plan.start.up
}
macro YearlyResorces [
resourcereport resources_${1} "" {
headline "Resources ${1}"
period ${1}-01-01 + 1y
columns no,
name,
weekly { width 1600 ${TaskTip} }
loadunit days
# We only like to show leaf tasks for leaf resources.
hidetask ~(isleaf() & isleaf_())
sorttasks plan.start.up
}
]
macro YearlyTextResourceReport [
textreport "Resource ${1}" {
formats html
title "R${1}"
center '<[report id="resources_${1}"]>'
}
]
macro YearlyTextOverviewReport [
textreport "Overview ${1}" {
formats html
title "O${1}"
center '<[report id="overview_${1}"]>'
}
]
${YearlyOverview "2020" }
${YearlyResorces "2020" }
${YearlyOverview "2021" }
${YearlyResorces "2021" }
textreport frame "" {
header -8<-
== Planning research engineer work ==
<[navigator id="navbar"]>
->8-
footer "----"
textreport index "Overview" {
formats html
center '<[report id="overview"]>'
}
textreport "Resources" {
formats html
title "Resources"
center '<[report id="resources"]>'
}
${YearlyTextOverviewReport "2020"}
${YearlyTextResourceReport "2020"}
${YearlyTextOverviewReport "2021"}
${YearlyTextResourceReport "2021"}
}
resource _nobody "Nobody" {
# Slowly progressing communal effort
efficiency 0.1
}
resource andersb "Anders Blomdell" {
vacation 2020-12-10 - 2020-12-30
}
resource andersn "Anders Nilsson" {
}
resource alexander "Alexander Pisarevskiy" {
}
resource teachers "Teachers" {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment