Tags:
create new tag
, view all tags

Question

I have successfully installed the BugsContrib. An excellent tool!

I made an important change. I added an Assinged field to the items to track the wiki user assigned to handle the issue. This required changes to the Tabulator.txt and another file that escapes me at the moment. It works well.

However, never happy, I now want to create a topic that will list all the items assigned to a particular person. It would appear similar to the AppliesTo page without the table at the top. The Active Items for drop down would be replaced by a Assigned To drop down where the wiki name of the assigned person could be selected. The page would refresh with a list of items assigned to that person. The list of people could come either from the Main.TWikiUsers page or from the metadata in the Bugs web items themselves. One person in the list would be Unassigned so the unassigned items could also be reported.

This is all very nice except I don't know how to do it. I have created an AssignedTo.txt file based on the AppliesTo.txt file. However, the query to get the user names is beyond my non-skills in Perl. I know there is code somewhere already in the TWiki that can search wiki user names but when I find it, I'll be mostly guessing on how to adapt it to my needs.

Does anyone have any tips to offer to accomplish my goal?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: ActionTrackerPlugin, CommentPlugin, EditTablePlugin, ExplicitNumberingPlugin, InterwikiPlugin, PreferencesPlugin, QuickCalendarPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, WysiwygPlugin
Server OS: Fedora Core 2, kernel 2.6.7-1.494.2.2
Web server: Apache 2.0.51
Perl version: 5.8.3
Client OS: Windows 2000
Web Browser: Firefox 2.0.0.1, Firefox 1.5
Categories: Forms, Search, Plugins, Add-Ons

-- AlanDayley - 17 Jan 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I solved this in a "good enough" fashion but tinkering with a few things.

  • I used this TWiki's MyRecentQuestions page as the template since it has an entry box for a WikiName? and a search based on that input.
  • Read up on FormatedSearch? .
  • Stole the "format=..." and "header=..." lines from my Tabulater.txt file.
  • Kept trying different search parameters based on grep searches in my BugsContrib text files.

I ended up with an AssignedTo page that requires a wiki name entry with a default of the current user's name. It is not a pre-populated drop down or selector but it is good enough for what I need. It also does not report unassigned items where the Assigned field is given a value of *Unassigned* but that is livable for now.

This is the code for my new AssignedTo page:

---+ Items Assigned To
<form action="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%">
<input type="text" name="qname" value="%URLPARAM{ "qname" default="%WIKINAME%" }%" size="24" />
<input type="submit" class="twikiSubmit" value="Go" /> (Use person's TWiki.WikiName)
</form>

%SEARCH{ "META\:FIELD.*?Assigned.*?value=.*Main.(%URLPARAM{ "qname" default="%WIKINAME%" }%)" regex="on" nosearch="on" order="%URLPARAM{ "order" default="modified" }%" reverse="%URLPARAM{ "reverse" default="on" }%" limit="%URLPARAM{ "limit" default="100" }%"
header="| *Id* | *Summary* | *Focus On* | *Priority* | *Current<BR>State* | *Assigned* | *Creation<BR>Date* |"
format="| [[$web.$topic][$topic]]  | $formfield(Summary) | $formfield(FocusOn) $formfield(ExtensionName) | $formfield(ItemPriority) | $formfield(CurrentState) | $formfield(Assigned) | $createdate |" }%

-- AlanDayley - 18 Jan 2007

 
Change status to:
Topic revision: r3 - 19 Jan 2007 - 01:46:43 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback