Opened 3 years ago

Last modified 4 months ago

#8477 new enhancement

Add support for custom fields

Reported by: sukender at Owned by: rjollos
Priority: normal Component: AutocompleteUsersPlugin
Severity: normal Keywords:
Cc: ejucovy Trac Release: 0.12


It could be nice to be able to have autocompletion on users' fields via trac.ini. Ex:

custom_fields = myField, anotherField

Attachments (2)

enable-autocomplete-dropdown-list-and-support-custom-fields.patch (13.5 KB) - added by t2y 5 months ago.
$ svn di > enable-autocomplete-dropdown-list-and-support-custom-fields.patch
enable-autocomplete-dropdown-list-and-support-custom-fields-for-review.patch (6.6 KB) - added by t2y 5 months ago.
$ svn di -x -w > enable-autocomplete-dropdown-list-and-support-custom-fields-for-review.patch

Download all attachments as: .zip

Change History (8)

comment:1 Changed 20 months ago by ejucovy

  • Cc ejucovy added

comment:2 Changed 5 months ago by t2y

I'll implement this.

comment:3 Changed 5 months ago by rjollos

Excellent. I will have some time this weekend to review your patch in #11415 as well.

Changed 5 months ago by t2y

$ svn di > enable-autocomplete-dropdown-list-and-support-custom-fields.patch

Changed 5 months ago by t2y

$ svn di -x -w > enable-autocomplete-dropdown-list-and-support-custom-fields-for-review.patch

comment:4 Changed 5 months ago by t2y

Note: attached patch includes the ticket:11415#comment:1 changes.

Patch summary:

This patch allow to enable auto complete function for custom fields. First of all, we need to set the custom field name into trac.ini. The configuration values are passed to javascript as a global variable with add_script_data() function.

custom_fields = managers, reviewers

I confirmed that it works on trac-0.12.1 and trac-1.0.2dev.

comment:5 Changed 4 months ago by t2y <tetsuya.morimoto@…>

Could you review this?

comment:6 Changed 4 months ago by rjollos

It is in my Queue. It's a FIFO, so it will be a few more days before I can review.

The feature suggested in this ticket sounds fine to me, so I'm likely to commit the changes, even if they require some modification first. I'm less certain of ticket #11415. It would help move things along if you could provide a patch for just the features in this ticket. That should be fairly easy to do if you commit the patches into a DVCS such as Git.

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.