• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4086: Enhancement for ActionTrackerPlugin

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension ActionTrackerPlugin Enhancement Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Enhancement for ActionTrackerPlugin

This enhancement is divided in three parts:These changes are tested with the unit tests. The unit tests did gave errors, before these modifications are made. These modifications did not change these errors. The output of svn diff > ATP_RichardVinke.diff are attached to this topic: ATP_RichardVinke.diff.

More control over actionnotify ouput format

Now it is possible to use actionnotify "header=\"| Assigned to | Due Date ||\"" format=\"'| $who | $due | $edit |'\". The table in the mail is now controlled by the header and format attribute. Changes are made in: ~twiki/lib/TWiki/Plugins/ActionTrackerPlugin/ActionNotify.pm: Original Line 67:73
my $hdr =
  TWiki::Func::getPreferencesValue( 'ACTIONTRACKERPLUGIN_TABLEHEADER' )
      || '| Assigned to | Due date | Description | State | Notify ||';

my $bdy =
  TWiki::Func::getPreferencesValue( 'ACTIONTRACKERPLUGIN_TABLEFORMAT' )
      || '| $who | $due | $text | $state | $notify | $edit |';
Changed to
my $hdr = $attrs->{header} # if the header attribute exists: take this.
          || TWiki::Func::getPreferencesValue( 'ACTIONTRACKERPLUGIN_TABLEHEADER' )
          || '| Assigned to | Due date | Description | State | Notify ||';
    delete $attrs->{header}; # Delete this attribute, because it mashes up the ActionSearch.
    my $bdy = $attrs->{format} # if the format attribute exists: take this.
          || TWiki::Func::getPreferencesValue( 'ACTIONTRACKERPLUGIN_TABLEFORMAT' )
          || '| $who | $due | $text | $state | $notify | $edit |';
    delete $attrs->{format}; # Delete this attribute, because it mashes up the ActionSearch.

Combine within and late in one mail

Calling the actionnotify script with within="7" all actions which are due before (now + 7 days) are mailed to the owner of the action. So also actions wich are late are mailed. Changes are made in: ~twiki/lib/Plugins/ActionTrackerPlugin/Action.pm Original lines 505:509:
if ($val > 0) {
    return ($slack <= 0) if ($secs > 0);
} else {
    return ($slack >= 0) if ($secs < 0);
if ($val > 0) {
    return ($slack <= 0);

Graphical nicer mailing

The mail send by the actionnotify script is not nice. By adding a link to the css file and modifying this css file the table of actions looks the same as in your internet client. Changes are made in:
  • ~twiki/templates/actionnotify.tmpl
    • Just after the <html> insert <link rel="stylesheet" href="%ACTIONTRACKERPLUGIN_CSS%" type="text/css" />.
  • ~twiki/pub/TWiki/ActionTrackerPlugin/styles.css.
    • Line 2 change .atpDef { in .atpDef, .atpChanges {.
    • Line 7 change .atpDef th { in .atpDef th,.atpChanges th {.

-- TWiki:Main/RichardVinke - 17 May 2007

I accepted all the changes except the middle one; it's too much of a departure from the existing semantics. instead, I supported signed days, which allows you to specify -7, 7, or +7 for the last 7 days, 7 days either side of today, or the next 7 days.

-- TWiki:Main.CrawfordCurrie - 19 Jul 2007

Summary Enhancement for ActionTrackerPlugin
ReportedBy TWiki:Main.RichardVinke
Codebase 4.1.2
SVN Range TWiki-4.1.2, Sun, 13 May 2007, build 13714
AppliesTo Extension
Component ActionTrackerPlugin
Priority Enhancement
CurrentState Closed

Checkins TWikirev:14425
TargetRelease n/a

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff ATP_RichardVinke.diff r1 manage 6.9 K 2007-05-17 - 18:05 UnknownUser svn diff of the modifications
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2007-09-02 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback