Opened 16 years ago
Last modified 5 years ago
#5831 new task
How about suggesting other fields?
| Reported by: | Owned by: | wolfisch | |
|---|---|---|---|
| Priority: | normal | Component: | ExplorerTheme |
| Severity: | normal | Keywords: | |
| Cc: | Steffen Hoffmann, falkb, Itamar Oren | Trac Release: | 1.0 |
Description (last modified by )
It would be great to use SuggestBox to other fields (e.g. component as well as some custom fields).
Can I get some clue?
Attachments (0)
Change History (9)
comment:1 Changed 15 years ago by
| Description: | modified (diff) |
|---|
comment:2 Changed 14 years ago by
| Owner: | changed from scratcher to Ryan J Ollos |
|---|
comment:3 Changed 14 years ago by
| Cc: | Steffen Hoffmann falkb Itamar Oren added; anonymous removed |
|---|---|
| Status: | new → assigned |
I've given this some more thought. I can't see how the plugin would be useful for the Component field because it is a drop-down list. For custom fields, you could just make a drop-down list. I suppose you might want to have the flexibility to define the custom field as a text box and provide some suggestions through the KeywordSuggestPlugin.
I might actually have a use case for this, since I'd like to have a Requirements field that is populated from a list of possible user requirements that the ticket satisfies. Initially, I was thinking this would be implemented through a custom field of type (listbox), but fullfilling the request in this ticket along with #3816 would allow users to add to the possible values for the field. Having the field be a select box, I'd have to manage the list through trac.ini.
It will probably be more complicated to modify the plugin so that it could be used on multiple fields. I'll look at both possibilities.
comment:4 Changed 14 years ago by
comment:5 follow-up: 8 Changed 14 years ago by
My proposal for using the autocomplete feature on multiple fields of the ticket page is to follow a pattern similar what is done for t:TracTicketsCustomFields. The configuration file would look like this:
[keywordsuggest] fields = keywords, requirements keywords.keywords = tag1,tag2,tag3 keywords.mustmatch = false keywords.helppage = wiki/TicketKeywords keywords.helppage.newwindow = False keywords.matchcontains = True keywords.multipleseparator = , requirements.usetagsplugin = true requirements.mustmatch = False requirements.helppage = wiki/TicketKeywords requirements.helppage.newwindow = False requirements.matchcontains = True requirements.multipleseparator = ,
I probably won't have this fully implemented for a couple of weeks. Feedback is welcome and appreciated.
comment:6 Changed 12 years ago by
| Status: | assigned → new |
|---|
comment:7 Changed 7 years ago by
| Owner: | Ryan J Ollos deleted |
|---|
comment:8 Changed 5 years ago by
Replying to Ryan J Ollos:
My proposal for using the autocomplete feature on multiple fields of the ticket page is to follow a pattern similar what is done for t:TracTicketsCustomFields. The configuration file would look like this:
[keywordsuggest] fields = keywords, requirements keywords.keywords = tag1,tag2,tag3 keywords.mustmatch = false keywords.helppage = wiki/TicketKeywords keywords.helppage.newwindow = False keywords.matchcontains = True keywords.multipleseparator = , requirements.usetagsplugin = true requirements.mustmatch = False requirements.helppage = wiki/TicketKeywords requirements.helppage.newwindow = False requirements.matchcontains = True requirements.multipleseparator = ,I probably won't have this fully implemented for a couple of weeks. Feedback is welcome and appreciated.
Was this ever implemented by any chance?
comment:9 Changed 5 years ago by
| Component: | KeywordSuggestPlugin → ExplorerTheme |
|---|---|
| Owner: | set to wolfisch |
| Trac Release: | 0.11 → 1.0 |
| Type: | enhancement → task |



Component is a drop-down list, so I don't see how this could be used there. It seems reasonable that this could be generalized to arbitrary custom fields, however.