From: Chris Schlaeger (cs_at_suse.de)
Date: Wed Aug 11 2004 - 17:08:57 CEST
From: Chris Schlaeger <cs@suse.de> Date: Wed, 11 Aug 2004 17:08:57 +0200 Message-Id: <200408111708.59161.cs@suse.de> Subject: Re: [taskjuggler] Load per resource
On Wednesday 11 August 2004 15:33, dick wrote:
> Hi Chris,
>
> Thanks, but......
>
> Chris Schlaeger wrote:
> > On Saturday 07 August 2004 12:33, dick wrote:
> >>Hi list,
> >>
> >>Perhaps I have missed it in the documentation, but is there a way to get
> >>a preformatted load per resource HTML report (preferably a graph per
> >>day?), where the output is split per resource?
> >
> > Would this one work?
> >
> > htmlresourcereport "resource.html" {
> > columns name, daily
> > }
>
> This way I have ONE file for all resources. But I want to see a
> particular resource, and not all resources combined. Off course I can
> use filters, but what I need is a HTML file per resource, so that I can
> use that specific file when using an online process. I could add
> specifications per resource, but I am not very happy with that.
Ah, now I see what you want. This is indeed a bit tricky. I use the following
script to do this:
<--8<-->
#! /bin/sh
# Gerenate a text file with all resource IDs, one per line
resources=`cat << EOF | taskjuggler . | tr -d '"'
project foo "Foo" "1.0" 2000-01-01 2000-01-02
include "$TOPDIR/common/department/Workforce.tji" {}
task dummy "Dummy" {
start 2000-01-01
milestone
}
csvresourcereport "." {
columns id { title " " }
hideresource gone
}
EOF`
# Gerenate a .tji file with all report definitions, one for each resource
rm -f PersReports.tji
touch PersReports.tji
for i in $resources ; do
cat << EOF >> PersReports.tji
htmlresourcereport "html/Resource-$i.html" {
headline "Task Schedule for $i"
columns name { cellurl "\$\${?SpecLink}" hidecellurl ~isATask() }, daily
start 2004-01-01
end 2004-07-01
hideresource ~isresource($i)
sortresources nameup
hidetask 0
}
EOF
done
<--8<-->
>
> >>In my application, I would like to show a graphical screen after the
> >>user selects a resource. Comparable to MS-Project resource load per
> >>time-unit.
> >>
> >>I hope I missed it, otherwise I'll have to develop it myself....
>
> Cheers,
> Dick Kniep
-- KDE 3.2: Conquer your Enterprise Desktop! See http://www.kde.org! GPG Key: 1024D/0500838B A5FE C051 2AFC 9A14 768A 5125 5829 5750 0500 838B
This archive was generated by hypermail 2.1.7 : Wed Aug 11 2004 - 17:12:55 CEST