emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* taskjuggler3 export
@ 2012-02-26 20:27 Thorsten
  2012-02-26 21:50 ` Erik Butz
  2012-02-29 19:11 ` d.tchin
  0 siblings, 2 replies; 5+ messages in thread
From: Thorsten @ 2012-02-26 20:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi list, 
I tried to write an org file for a project plan with the aim to export
it using taskjuggler 3.1.0. 

besides following the advice from these two source:

,----------------------------------------------------------------------
| http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00058.html
| https://github.com/alander/org-taskjuggler3
`----------------------------------------------------------------------

and deleting some redundant braces in the exported .tjp file, the
resulting html files were less than satisfying (e.g. no gantt chart
created).  

The problem seems to be the reporting part. Does anyone has sample
report templates that can be used in
"org-export-taskjuggler-default-reports" when using taskjuggler3?

Or, more generally asked, did anyone recently successfully exported to
taskjuggler3?

Thanks for any hints. 

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: taskjuggler3 export
  2012-02-26 20:27 taskjuggler3 export Thorsten
@ 2012-02-26 21:50 ` Erik Butz
  2012-02-26 23:05   ` Thorsten
  2012-02-29 19:11 ` d.tchin
  1 sibling, 1 reply; 5+ messages in thread
From: Erik Butz @ 2012-02-26 21:50 UTC (permalink / raw)
  To: Thorsten; +Cc: emacs-orgmode

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

Hi,

I didn't use the org-taskjuggler3 resource, but below[1] are some
changes that I made in the org-taskjuggler.el file. With these I can
export e.g. the default example file at:
http://orgmode.org/worg/org-tutorials/org-taskjuggler.html to a
taskjuggler file and have tj3 produce a Gantt_Chart web page, see
screenshot attached.

Caveat: In the standard example file I changed all efforts from xxd to
xx.0 and resource_id to ID.

Hope this helps.

Erik

[1]:
--- org-taskjuggler.el~ 2012-02-03 14:41:44.418766002 +0100
+++ org-taskjuggler.el  2012-02-03 17:22:50.682766002 +0100
@@ -169,18 +169,20 @@ with `org-export-taskjuggler-project-tag
   :type 'integer)

 (defcustom org-export-taskjuggler-default-reports
-  '("taskreport \"Gantt Chart\" {
+  '("taskreport \"Gantt_Chart\" {
+  formats html
   headline \"Project Gantt Chart\"
-  columns hierarchindex, name, start, end, effort, duration, completed, chart
+  columns name, start, end, effort, duration, completed, chart
   timeformat \"%Y-%m-%d\"
   hideresource 1
   loadunit shortauto
 }"
-"resourcereport \"Resource Graph\" {
+"resourcereport \"Resource_Graph\" {
+  formats html
   headline \"Resource Allocation Graph\"
-  columns no, name, utilization, freeload, chart
+  columns no, name,  chart
   loadunit shortauto
-  sorttasks startup
+  sorttasks tree
   hidetask ~isleaf()
 }")
   "Default reports for the project."


On Sun, Feb 26, 2012 at 9:27 PM, Thorsten <quintfall@googlemail.com> wrote:
> Hi list,
> I tried to write an org file for a project plan with the aim to export
> it using taskjuggler 3.1.0.
>
> besides following the advice from these two source:
>
> ,----------------------------------------------------------------------
> | http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00058.html
> | https://github.com/alander/org-taskjuggler3
> `----------------------------------------------------------------------
>
> and deleting some redundant braces in the exported .tjp file, the
> resulting html files were less than satisfying (e.g. no gantt chart
> created).
>
> The problem seems to be the reporting part. Does anyone has sample
> report templates that can be used in
> "org-export-taskjuggler-default-reports" when using taskjuggler3?
>
> Or, more generally asked, did anyone recently successfully exported to
> taskjuggler3?
>
> Thanks for any hints.
>
> --
> cheers,
> Thorsten
>
>
>

[-- Attachment #2: tj3_gantt_screenshot.png --]
[-- Type: image/png, Size: 63016 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: taskjuggler3 export
  2012-02-26 21:50 ` Erik Butz
@ 2012-02-26 23:05   ` Thorsten
  0 siblings, 0 replies; 5+ messages in thread
From: Thorsten @ 2012-02-26 23:05 UTC (permalink / raw)
  To: emacs-orgmode

Erik Butz <erik.butz@googlemail.com> writes:

Hi,

> I didn't use the org-taskjuggler3 resource, but below[1] are some
> changes that I made in the org-taskjuggler.el file. With these I can
> export e.g. the default example file at:
> http://orgmode.org/worg/org-tutorials/org-taskjuggler.html to a
> taskjuggler file and have tj3 produce a Gantt_Chart web page, see
> screenshot attached.
>
> Caveat: In the standard example file I changed all efforts from xxd to
> xx.0 and resource_id to ID.
>
> Hope this helps.

thanks for your answer, I could not really make it work, I think I will
install taskjuggler 2.4 and just wait untill orgmode is ready for
taskjuggler3

The estimated efford for my little gantt chart was 1h,
now its almost 1d ;)
-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: taskjuggler3 export
  2012-02-26 20:27 taskjuggler3 export Thorsten
  2012-02-26 21:50 ` Erik Butz
@ 2012-02-29 19:11 ` d.tchin
  2012-02-29 21:01   ` Thorsten
  1 sibling, 1 reply; 5+ messages in thread
From: d.tchin @ 2012-02-29 19:11 UTC (permalink / raw)
  To: emacs-orgmode

Hi, 

I use the following testtj3.org file that I export to taskjuggler 3.0 :

,----------------------------------------------------------------------------
|#+TITLE:     testtj3.org						
	      	  
|#+PROPERTY: Effort_ALL 2d 5d 10d 20d 30d 35d 50d 			      
|									      
|* Action list						:taskjuggler_project:  
|** TODO Test tj3 A							      
|    :PROPERTIES:							     
|    :Effort:   1w							      
|    :allocate: toA					 
|    :END:							      
|** TODO Test tj3 B							      
|    :PROPERTIES:							      
|    :Effort:   1w							      
|    :allocate: toB							      
|    :BLOCKER:  previous-sibling					      
|    :END:								      
|** TODO Test 2 tj3 	
|    :PROPERTIES:							      
|    :Effort:   2w							      
|    :allocate:  toA							      
|    :BLOCKER:  previous-sibling				
|    :END:								      
|** TODO Test 2 tj3 B 							     
|    :PROPERTIES:							      
|    :Effort:   2w							     
|    :allocate: toB 
|    :BLOCKER: previous-sibling						      
|    :END:								      
|* Ressources					       :taskjuggler_resource: 
|** A 									      
|    :PROPERTIES:							      
|    :resource_id: toA							      
|    :END:    								 
|** B									      
|    :PROPERTIES:					
|    :resource_id: toB 				     	 
|    :END:    				      	 
|									      
|# Local Variables:							      
|# org-export-taskjuggler-target-version: 3.0	
|# org-export-taskjuggler-default-reports: ("include \"gantexport.tji\"")      
|# End:                                                                    
`----------------------------------------------------------------------------

As you can see, I define in the org-export-taskjuggler-default-reports 
variable at the end of the file that I want to use gantexport.tji where the 
gant output directives are defined. This file is in the same directory as org 
file.

The gantexport.tji is the following :

,-----------------------------------------------------------------------------
|### begin report definition						       
|									       
|taskreport "Gantt Chart" {						       
|  headline "Project Gantt Chart"					       
|  columns hierarchindex, name, start, end, effort, duration, completed, 
chart  
|  timeformat "%Y-%m-%d"       
|  hideresource 1							       
|  formats html								       
|  loadunit shortauto							       
|}                                                                            
`-----------------------------------------------------------------------------

Then the instruction tj3 testtj3.tjp generate the gant chart accessible 
in "Gantt Chart.html" file.

Hope that can help.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: taskjuggler3 export
  2012-02-29 19:11 ` d.tchin
@ 2012-02-29 21:01   ` Thorsten
  0 siblings, 0 replies; 5+ messages in thread
From: Thorsten @ 2012-02-29 21:01 UTC (permalink / raw)
  To: emacs-orgmode

d.tchin <d.tchin@voila.fr> writes:

Hi, 

> |
> |# Local Variables:
> |# org-export-taskjuggler-target-version: 3.0	
> |# org-export-taskjuggler-default-reports: ("include
> | \"gantexport.tji\"")
> |# End:                                                                    
> `----------------------------------------------------------------------------
>
> As you can see, I define in the org-export-taskjuggler-default-reports 
> variable at the end of the file that I want to use gantexport.tji
> where the
> gant output directives are defined. This file is in the same directory
> as org
> file.
> The gantexport.tji is the following :
>
> ,-----------------------------------------------------------------------------
> |### begin report definition
> |
> |taskreport "Gantt Chart" {
> |  headline "Project Gantt Chart"
> |  columns hierarchindex, name, start, end, effort, duration, completed, 
> chart  
> |  timeformat "%Y-%m-%d"       
> |  hideresource 1
> |  formats html
> |  loadunit shortauto
> |}
> `-----------------------------------------------------------------------------
>
> Then the instruction tj3 testtj3.tjp generate the gant chart accessible 
> in "Gantt Chart.html" file.
>
> Hope that can help.

Great, thats exactly what I was looking for!
Thanks a lot

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-29 21:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26 20:27 taskjuggler3 export Thorsten
2012-02-26 21:50 ` Erik Butz
2012-02-26 23:05   ` Thorsten
2012-02-29 19:11 ` d.tchin
2012-02-29 21:01   ` Thorsten

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).