From b435e548736889a3afc09d658742853b26152e6c Mon Sep 17 00:00:00 2001 From: Hendrik Lippek Date: Tue, 8 Feb 2011 00:44:09 +0100 Subject: [PATCH] Add "notes" field to planner2csv.pl The notes field may contain useful information about the tasks. So add this field to the .csv file. --- planner2csv.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/planner2csv.pl b/planner2csv.pl index a88d413..d4b99d6 100755 --- a/planner2csv.pl +++ b/planner2csv.pl @@ -30,7 +30,7 @@ my $csv = Text::CSV_XS->new(); my %id_map; my @headers = ('id', 'description', 'allocated', 'start', 'end', 'duration (s)', 'percent complete', - 'predecessor'); + 'predecessor', 'note'); my %headers; for my $i (0..$#headers) { $headers{$headers[$i]} = $i; @@ -81,6 +81,8 @@ sub find_tasks { push @fields, find_predecessors($task); + push @fields, $task->findvalue('@note'); + push @rows, \@fields; push @id, '0'; -- 2.30.2