emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Buddy Butterfly <buddy.butterfly@web.de>
To: emacs-orgmode@gnu.org
Subject: Re: Creating Gantt charts by Exporting to TaskJuggler 3.3.0
Date: Fri, 14 Sep 2012 15:26:26 +0200	[thread overview]
Message-ID: <50533082.3070604@web.de> (raw)
In-Reply-To: <801ui4zr0s.fsf@somewhere.org>

[-- Attachment #1: Type: text/plain, Size: 9210 bytes --]


Hi,

tj3 support is still buggy. And tj export gets confused with the task_id
tags.
It does not generate unique IDs nor does  it have manual ID marking. So
it gets
scrampled. So, for a bigger project it does not really work.

Verify to use

*Org Export Taskjuggler Target Version:
*
3.0

I have used the following settings with M-x customize-group ->
org-export-taskjuggler
and worked for me as a first shot with tj3:


*Org Export Taskjuggler Default Global Properties:
*
shift s40 "Part time shift" {
  workinghours wed, thu, fri off
}

account cost "Project Cost" {
  aggregate tasks
}

account rev "Payments" {
}

*Org Export Taskjuggler Default Reports:*

# Now the project has been specified completely. Stopping here would
# result in a valid TaskJuggler file that could be processed and
# scheduled. But no reports would be generated to visualize the
# results.

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-
]

textreport frame "" {
  header -8<-
    == mwit Projects ==
    <[navigator id="navbar"]>
  ->8-
  footer "----"
  textreport index "Overview" {
    formats html
    center '<[report id="overview"]>'
  }

  textreport "Status" {
    formats html
    center -8<-
      <[report id="status.dashboard"]>
      ----
      <[report id="status.completed"]>
      ----
      <[report id="status.ongoing"]>
      ----
      <[report id="status.future"]>
    ->8-
  }

  textreport development "Development" {
    formats html
    center '<[report id="development"]>'
  }

  textreport "ContactList" {
    formats html
    title "Contact List"
    center '<[report id="contactList"]>'
  }
  textreport "ResourceGraph" {
    formats html
    title "Resource Graph"
    center '<[report id="resourceGraph"]>'
  }
}

# A traditional Gantt chart with a project overview.
taskreport overview "" {
  header -8<-
    === Project Overview ===

    The project is structured into 3 phases.

    # Specification
    # <-reportlink id='frame.development'->
    # Testing

    === Original Project Plan ===
  ->8-
  columns bsi { title 'WBS' },
          name, start, end, effort, cost,
          revenue, chart { ${TaskTip} }
  # For this report we like to have the abbreviated weekday in front
  # of the date. %a is the tag for this.
  timeformat "%a %Y-%m-%d"
  loadunit days
  hideresource @all
  balance cost rev
  caption 'All effort values are in man days.'

  footer -8<-
    === Staffing ===

    All project phases are properly staffed. See [[ResourceGraph]] for
    detailed resource allocations.

    === Current Status ===

    The project started off with a delay of 4 days. This slightly affected
    the original schedule. See [[Deliveries]] for the impact on the
    delivery dates.
  ->8-
}

# Macro to set the background color of a cell according to the alert
# level of the task.
macro AlertColor [
  cellcolor plan.alert = 0 "#00D000" # green
  cellcolor plan.alert = 1 "#D0D000" # yellow
  cellcolor plan.alert = 2 "#D00000" # red
]

taskreport status "" {
  columns bsi { width 50 title 'WBS' }, name { width 150 },
          start { width 100 }, end { width 100 },
          effort { width 100 },
          alert { tooltip plan.journal
                          != '' "<-query attribute='journal'->" width 150 },
          status { width 150 }

  taskreport dashboard "" {
    headline "Project Dashboard (<-query attribute='now'->)"
    columns name { title "Task" ${AlertColor} width 200},
            resources { width 200 ${AlertColor}
                        listtype bullets
                        listitem "<-query attribute='name'->"
                        start ${projectstart} end ${projectend} },
            alerttrend { title "Trend" ${AlertColor} width 50 },
            journal { width 350 ${AlertColor} }
    journalmode status_up
    journalattributes headline, author, date, summary, details
    hidetask ~hasalert(0)
    sorttasks alert.down
    period %{${now} - 1w} +8w
  }
  taskreport completed "" {
    headline "Already completed tasks"
    hidetask ~(plan.end <= ${now})
  }
  taskreport ongoing "" {
    headline "Ongoing tasks"
    hidetask ~((plan.start <= ${now}) & (plan.end > ${now}))
  }
  taskreport future "" {
    headline "Future tasks"
    hidetask ~(plan.start > ${now})
  }
}

# A list of tasks showing the resources assigned to each task.
taskreport development "" {
  headline "Development - Resource Allocation Report"
  columns bsi { title 'WBS' }, name, start, end, effort { title "Work" },
          duration, chart { ${TaskTip} scale day width 500 }
  timeformat "%Y-%m-%d"
  hideresource ~(isleaf() & isleaf_())
  sortresources name.up
}

# A list of all employees with their contact details.
resourcereport contactList "" {
  headline "Contact list and duty plan"
  columns name,
          email { celltext 1 "[mailto:<-email-> <-email->]" },
          managers { title "Manager" },
          chart { scale day }
  hideresource ~isleaf()
  sortresources name.up
  hidetask @all
}

# A graph showing resource allocation. It identifies whether each
# resource is under- or over-allocated for.
resourcereport resourceGraph "" {
  headline "Resource Allocation Graph"
  columns no, name, effort, rate, weekly { ${TaskTip} }
  loadunit shortauto
  # We only like to show leaf tasks for leaf resources.
  hidetask ~(isleaf() & isleaf_())
  sorttasks plan.start.up
}



Am 14.09.2012 15:13, schrieb Sebastien Vauban:
> Hello,
>
> I'm trying to use the export to TJ3 on Windows (I installed Ruby from Cygwin),
> but don't succeed to get the first view of the project, as shown on
> http://orgmode.org/worg/org-tutorials/org-taskjuggler.html.
>
> I'm using the very first example given at line "Your resulting Org mode
> project file will look somewhat like the following:", add the required tag
> :taskjuggler_project: to the node "Accounting Software".
>
> Then, I export it to TJ (C-c C-e j) and run tj3 against it:
>
> $ tj3 org-tj3.tjp
>
> Results:
>
> --8<---------------cut here---------------start------------->8---
> TaskJuggler v3.3.0 - A Project Management Software
>
> Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
>               by Chris Schlaeger <chris@linux.com>
>
> This program is free software; you can redistribute it and/or modify it under
> the terms of version 2 of the GNU General Public License as published by the
> Free Software Foundation.
>
> org-tj3.tjp:11: Error: allocations is not a known attribute for this property
>  purge allocations
> --8<---------------cut here---------------end--------------->8---
>
> I comment the purge "allocation line", and try to run it further...
>
> --8<---------------cut here---------------start------------->8---
> TaskJuggler v3.3.0 - A Project Management Software
>
> Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
>               by Chris Schlaeger <chris@linux.com>
>
> This program is free software; you can redistribute it and/or modify it under
> the terms of version 2 of the GNU General Public License as published by the
> Free Software Foundation.
>
> org-tj3.tjp:70: Warning: The keyword 'hierarchindex' has been deprecated! See the reference manual for details.
>   columns hierarchindex
> org-tj3.tjp:70: Warning: The keyword 'completed' has been deprecated! See the reference manual for details.
>   columns hierarchindex, name, start, end, effort, duration, completed
> org-tj3.tjp:77: Error: Unexpected token 'utilization' found. Expecting one of 'activetasks', 'annualleave', 'annualleavebalance', 'alert', 'alertmessages', 'alertsummaries', 'alerttrend', 'balance', 'bsi', 'chart', 'closedtasks', 'complete', 'completed', 'criticalness', 'cost', 'daily', 'directreports', 'duration', 'duties', 'efficiency', 'effort', 'effortdone', 'effortleft', 'email', 'end', 'flags', 'followers', 'freetime', 'freework', 'fte', 'gauge', 'headcount', 'hierarchindex', 'hourly', 'id', 'index', 'inputs', 'journal', 'journal_sub', 'journalmessages', 'journalsummaries', 'line', 'managers', 'maxend', 'maxstart', 'minend', 'minstart', 'monthly', 'no', 'name', 'note', 'opentasks', 'pathcriticalness', 'precursors', 'priority', 'quarterly', 'rate', 'reports', 'resources', 'responsible', 'revenue', 'scenario', 'seqno', 'sickleave', 'specialleave', 'start', 'status', 'targets', 'wbs', 'unpaidleave', 'weekly', 'yearly'
>   columns no, name, utilization
> --8<---------------cut here---------------end--------------->8---
>
> So, it seems that the output file is not up-to-date (tj v3.3.0), or do I miss
> something?
>
> Best regards,
>   Seb
>
> PS - Org-mode version 7.9.1 (release_7.9.1-199-g6589b9 @ d:/home/sva/src/org-mode/lisp/)
>

[-- Attachment #2: Type: text/html, Size: 12169 bytes --]

  reply	other threads:[~2012-09-14 13:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 13:13 Creating Gantt charts by Exporting to TaskJuggler 3.3.0 Sebastien Vauban
2012-09-14 13:26 ` Buddy Butterfly [this message]
2012-09-14 14:38   ` Sebastien Vauban
2012-09-14 15:00     ` Buddy Butterfly
2012-09-14 15:09     ` Giovanni Ridolfi
2012-09-14 15:13       ` Buddy Butterfly
2012-09-14 15:55         ` Yann Hodique
2012-09-14 16:06           ` Buddy Butterfly
2013-03-31 16:06             ` Buddy Butterfly
2013-04-02 15:46               ` Christian Egli
2013-04-02 16:51                 ` John Hendy
2012-09-18  6:50           ` Bastien
2012-09-18 14:33             ` John Hendy
2012-09-25 12:36           ` Christian Egli
2012-09-25 12:33         ` Christian Egli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50533082.3070604@web.de \
    --to=buddy.butterfly@web.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).