From: Chris Schlaeger (cs_at_suse.de)
Date: Tue May 20 2003 - 11:17:44 CEST
From: Chris Schlaeger <cs@suse.de> Date: Tue, 20 May 2003 11:17:44 +0200 Message-Id: <200305201117.44635.cs@suse.de> Subject: Re: [taskjuggler] Reports for individual resources?
On Monday 19 May 2003 20:05, Holger Karl wrote:
> Hello,
>
> I am trying to find a nice and simple way to get resource reports for
> individual resources or groups of resources.
>
> Using the accounting software example, I think it would be natural to
> write:
>
>
> htmlresourcereport "paul.html" {
> columns no, name, weekly, effort
> hideresource ~dev1
You can use
hideresource ~isresource(dev1)
to hide/show resources by id rather then use flags.
Chris
> loadunit days
> headline "paul resources"
> }
>
> htmlresourcereport "sebastian.html" {
> columns no, name, weekly, effort
> hideresource ~dev2
> loadunit days
> headline "sebastian resources"
> }
> htmlresourcereport "developers.html" {
> columns no, name, weekly, effort
> hideresource ~dev
> loadunit days
> headline "developers resources"
> }
>
>
> to get reports for paul, sebastian, or all developers. But this does not
> work, since the resource names themselves are not flags.
>
> Adding flags simply as
>
> resource dev "Developers" {
> flags paul resource dev1 "Paul Smith" { rate 330.0 }
> flags sebastian resource dev2 "Sébastien Bono"
>
>
> (and then asking for hideresource ~paul etc.) also does not work since
> flags apply to all folowing reosource with { }
>
> So, the only alternative seems to be to write:
>
> resource dev "Developers" {
> resource dev1Virtual "Paul Smith only for scoping purposes" {
> flags paul
> resource dev1 "Paul Smith" { rate 330.0 }
> }
> resource dev2Virtual "Sebastian only for scoping purposes" {
> flags sebastian
> resource dev2 "Sébastien Bono"
> }
> resource dev3 "Klaus Müller" { vacation 2002-02-01 - 2002-02-05 }
>
> flags team
> }
>
> which really is cumbersome and adds a needless wrapper around a resource.
>
> While then
>
> htmlresourcereport "paul.html" {
> columns no, name, weekly, effort
> hideresource ~paul
> loadunit days
> headline "paul resources"
> }
>
> sort of gives the output I was looking for (see attachement if that works
> out via the mailing list), it still contains two lines for the enclosing
> resources (dev and the virtual paul).
>
> I did not manage to get rid of these enclosing lines!
>
> Summary: It would be really useful to be able to produce resource reports
> just by stating a resource name (as an "implicit flag"), optionally with
> rollupresources to hide contained resources - say, if I just want to know
> about developpers, but not in detail, and nothing about "The Others", and
> nothing about the entire project either.
>
> If there is any simple way to do that, this would help me a lot!
>
> Thanks and best regards
>
> Holger
-- KDE 3.1: 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 : Tue May 20 2003 - 11:20:30 CEST