wiki:AutocompleteUsersPlugin

Version 15 (modified by richard, 4 years ago) (diff)

--

Autocomplete user fields (assigned to and CC) on tickets

Description

The AutocompleteUsersPlugin allows AJAX completion of users for the owner and CC fields on new and existing tickets. Currently, all the known users are autocompleted though this could be restricted to those that have the ticket owner permission. A /users URL is served which presents the user data in a format suitable to the javascript autocompleter. The AutocompleteUsersPlugin should gracefully degrade in the case of no JS or the case where [ticket] restrict_owner = true

Note: Email addresses shown by this plugin are handled accordingly to the setting trac.show_email_addresses and the permission EMAIL_VIEW. I.e. if trac.show_email_addresses is set to false and the current user doesn't have the permission EMAIL_VIEW all mail address will be obfuscated as usual in Trac (i.e. email addresses will be displayed as donjaun@... rather than donjaun@example.com). In any other case the full email address is visible.

Alternative: TracAutoCompletePlugin

Bugs/Feature Requests

Existing bugs and feature requests for AutocompleteUsersPlugin are here.

If you have any issues, create a new ticket.

Download and Source

Download the zipped source, check out using Subversion, or browse the source with Trac. AutocompleteUsersPlugin works only for trac 0.11 and greater.

Configuration

After installing plugin add to trac.ini configuration file following:

[components]
autocompleteusers.* = enabled

Example

Screenshot of the plugin in action:

illustration of the AutocompleteUsers on the CC field

Recent Changes

[12687] by rjollos on 2013-03-06 01:07:38
Refs #10172: Formatted source code (should not result in any functional changes).
[11757] by jun66j5 on 2012-07-23 14:38:53
Uses jQuery.on method to call $.autocomplete if available and uses multiple option for the CC fields on the custom query

Closes #10155.

[11753] by rjollos on 2012-07-23 06:39:40
Refs #10155: Added autocomplete of the reporter, owner and cc fields on the custom query page. Thanks to Jun Omae for the patch.

Author/Contributors

Author: k0s
Contributors: tenzochris, Sebastian Krysmanski

Attachments (1)

Download all attachments as: .zip