Hello,
I got an example from the web to run Taskjuggler (attached;
https://emacs.stackexchange.com/a/31513).
However, when I try to set efforts to units other than hours (~:Effort:
5d~ or ~:Effort: 1w~; see [[tjp.org::Another task]]), org-export
multiplies 24 hours times the number of days. This results in 120.0h (3
weeks in the HTML report) for 5d.
I would like to know if, instead of having 24 hours as the factor, there
is a way to have the actual value copied (~:Effort: 5d~ from the tjp.org
to ~effort 5d~ in the tjp.tjp).
I modified the resulting .tjp, and I can set ~effort 5d~ to get 5
effective days (if no other task is allocated to the resource). Also, if
I set ~:Length: 5d~ instead of ~:Effort: 5d~, the time is well allocated
(results in ~length 5d~; may be that is a clue..?).
If this question has been answered before, I would appreciate if someone
points me in the right direction. Thanks!
* My configuration
Org mode version 9.1.2 (9.1.2-15-g1d5142-elpa
GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
I copied and loaded the ox-taskjuggler.el from http://orgmode.org/elpa/
today.
#+BEGIN_SRC emacs-lisp
(require 'package)
(package-initialize)
(require 'org)
(add-to-list 'org-export-backends 'taskjuggler)
(require 'ox-taskjuggler)
#+END_SRC
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
project nil "test project" "1.0" 2017-03-25 +280d {
}
shift s40 "Part time shift" {
workinghours wed, thu, fri off
}
resource people "People" {
resource sdude "Some Dude" {
limits { dailymax 8.0h }
workinghours mon - fri 9:00 - 12:00, 13:00 - 18:00
}
}
task test "test project" {
start 2017-03-25
task milestones "Milestones" {
task start "Start" {
milestone
}
task end "End" {
milestone
}
}
task tasks "tasks" {
task first_task "Some task" {
depends !!milestones.start
purge allocate
allocate sdude
complete 50
effort 4.0h
}
task second_task "Another task" {
depends !first_task
purge allocate
allocate sdude
complete 50
effort 120.0h
}
}
}
textreport report "Plan" {
formats html
header '== test project =='
center -8<-
[#Plan Plan] | [#Resource_Allocation Resource Allocation]
----
=== Plan ===
<[report id="plan"]>
----
=== Resource Allocation ===
<[report id="resourceGraph"]>
->8-
}
# A traditional Gantt chart with a project overview.
taskreport plan "" {
headline "Project Plan"
columns bsi, name, start, end, effort, chart
loadunit shortauto
hideresource 1
}
# 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, weekly
loadunit shortauto
hidetask ~(isleaf() & isleaf_())
sorttasks plan.start.up
}
#+COLUMNS: %25ITEM %TODO %3PRIORITY %ALLOCATE(Owner) %DEPENDS(depends)
%EFFORT(Effort) %TAGS
* test project :taskjuggler_project:
:PROPERTIES:
:start: 2017-03-25
:END:
** Milestones
the milestones for the project
*** Start
:PROPERTIES:
:task_id: start
:END:
the start of the project.
*** End
:PROPERTIES:
:task_id: end
:depends: blah
:END:
this is the end of the project
** tasks
*** TODO Some task
DEADLINE: <2017-03-29 Wed> SCHEDULED: <2017-03-27 Mon>
:PROPERTIES:
:task_id: first_task
:Effort: 4:00
:depends: start
:complete: 50
:ALLOCATE: sdude
:END:
this is a test of the system.
*** TODO Another task
DEADLINE: <2017-03-29 Wed> SCHEDULED: <2017-03-28 Tue>
:PROPERTIES:
:task_id: second_task
:Effort: 5d
:depends: first_task
:complete: 50
:ALLOCATE: sdude
:END:
* Resources :taskjuggler_resource:
:PROPERTIES:
:workinghours: sat, sun off
:END:
** People
:PROPERTIES:
:COLUMNS: %30Item(Person) %workinghours(Work hours) %15resource_id(ID) %email
%Phone
:END:
These are the resources available to the project.
*** Some Dude
:PROPERTIES:
:resource_id: sdude
:limits: { dailymax 8.0h }
:workinghours: mon - fri 9:00 - 12:00, 13:00 - 18:00
:END: