Tags:
create new tag
view all tags

Question

Hi. ActionTrackerPlugin rocks!

I want to distinguish between two types (or categories) of action items in my team Twiki, "team" and "individual", so that I may list them in separate tables.

I have defined a non-standard text attribute called "type" which allows me to do what I want as long as I set the type correctly in the action item. (type="team" or type="individual")

Here's the problem: Many of my existing actions don't have a type defined, so I would like to find a way to specify an ACTIONSEARCH command which will do the following:

1) include "team" actions 2) also include "typeless" actions (such as the ones I captured before I started playing with these non-standard attributes) 3) exclude "individual" actions

Anyone know how I might achieve this please? I have tried all kinds of regular expressions in the type attribute of my ACTIONSEARCH command, to no avail.

Failing that, the ugly solution might be to script something to go and retro-actively add the type="team" attribute to all past action items, but I think a more elegant way forward would be to make the type="team" be the default for actions in which no "type" is specfified.

Clues?

Thanks in advance, Nick.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 2.4.21
Web server: Apache 2.0.53
Perl version: Perl 5.8.5
Client OS: Windows XP SP2
Web Browser: Firefox 1.0.3
Categories: Plugins

-- NickCole - 20 Jun 2005

Answer

As I recall, ACTIONSEARCH doesn't do regex searches in user defined fields, though I'll double-check when I have access to the source.

You could always use a standard SEARCH, I suppose.

-- CrawfordCurrie - 30 Jun 2005

Thanks. Do you know of any way I might force new action items to be of type="team" please?

-- NickCole - 04 Jul 2005

You could force them in the beforeSaveHandler, when missing fields are filled in.

-- CrawfordCurrie - 14 Jul 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-09-01 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.