Add ticket keywords from a configured list

Description

This plug-in allows you to add entries to the Keywords entry field from a configured list of keywords by clicking on them.

Allows to set a description for every keyword, which is shown as a tip when you cross over the mouse on the keyword from "Add keywords" section.

Usage

From the "Add keywords" section:

  1. click once on any of the keywords you want to be filled-in into "Keywords" field;
  2. to remove a keyword click again on it.

You can also continue to add manually other keywords weren't listed.

To maintain keywords, edit [keywords] section in trac.ini file.

Add keywords section in a Ticket

Bugs/Feature Requests

Existing bugs and feature requests for TracKeywordsPlugin are here.

If you have any issues, create a new ticket.

Install/Configuration

  1. Proceed with normal installation of plugins.
  2. Update the ticket template page to include this plugin page section ("Add keywords").
    • You can do this by including the following line somewhere in the keywords.html file:
      <xi:include href="keywords.html" />
      
      • Suggested place: right before </body> tag.
      • Where to locate files @ Trac 0.12:
        • <trac_egg>/trac/ticket/templates/ticket.html
        • <trac_egg>/trac/wiki/templates/wiki_edit.html (For a slight integration with TagsPlugin, see #8799)
      • Trac 0.10 ticket.cs file:
        ...
        </fieldset><?cs /if ?>;
        
        <?cs include "keywords.cs" ?>
        
        <?cs if:ticket.actions.accept || ticket.actions.reopen ||
                ticket.actions.resolve || ticket.actions.reassign ?>
        ...
        
  3. Configure trac.ini file, with you required keywords:
    • Format <name> = <description>, where description will shown as a tip.
    • Example:
      [keywords]
      dupsearch = find duplicates for this ticket
      deploy = waiting to be deployed
      backport = ask for a decision on whether to backport
      
  4. Restart web server:
    $ sudo /etc/init.d/apache2 restart
    

Source & Download

You can check out TracKeywordsPlugin from here using Subversion, or browse the source with Trac.

Download the zipped source from here.

Recent Changes

[9285] by rjollos on 10/12/10 19:42:29

Make javascript variables locate so as to not pollute the namespace. Fixes #7673.

[9284] by rjollos on 10/12/10 19:38:13

0.10 and 0.11 version of webui.py were mistakenly interchanged in [6528]. Fixes #6104.

[9283] by rjollos on 10/12/10 19:36:12

Moving file that was mis-located in [6528]. Refs #6104.

[6528] by thomasvs on 09/09/09 19:18:34

  • setup.py: Bump version to 0.2 for 0.11 port
  • README: Update notes on how to use it.
  • trackeywords/web_ui.py: keywords fieldset was renamed to field-keywords
  • trackeywords/templates/keywords.cs (deleted): Remove clearsilver template.
  • trackeywords/templates/keywords.html (added): Replace with Genshi template.

Author/Contributors

Author: thomasvs
Maintainer: rjollos
Contributors: rea, nelsojost

See also

KeywordSuggestPlugin.

Attachments