Modify

Opened 15 years ago

Last modified 4 years ago

#5831 new task

How about suggesting other fields?

Reported by: makotka@… Owned by: wolfisch
Priority: normal Component: ExplorerTheme
Severity: normal Keywords:
Cc: Steffen Hoffmann, falkb, Itamar Oren Trac Release: 1.0

Description (last modified by Ryan J Ollos)

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 14 years ago by Ryan J Ollos

Description: modified (diff)

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.

comment:2 Changed 13 years ago by Ryan J Ollos

Owner: changed from scratcher to Ryan J Ollos

comment:3 Changed 13 years ago by Ryan J Ollos

Cc: Steffen Hoffmann falkb Itamar Oren added; anonymous removed
Status: newassigned

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 13 years ago by Ryan J Ollos

(In [11004]) Refs #5831: (0.4.5dev) The ticket field to which the suggestion list is attached can be a field other than Keywords. The field must be a text type. The suggestion can still only be used on one field.

comment:5 Changed 13 years ago by 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.

comment:6 Changed 11 years ago by Ryan J Ollos

Status: assignednew

comment:7 Changed 6 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

comment:8 in reply to:  5 Changed 4 years ago by solstice333

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 4 years ago by anonymous

Component: KeywordSuggestPluginExplorerTheme
Owner: set to wolfisch
Trac Release: 0.111.0
Type: enhancementtask

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain wolfisch.

Add Comment


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

 
Note: See TracTickets for help on using tickets.