On Tue, Mar 31, 2015 at 2:38 PM, pineapplehandler <[email protected]> wrote:
> Say I want to use the Ticket Validator plugin, and I want to test > the Component and Type fields for specific values. Is this the correct > format to enter the field names in the .ini? I'm totally guessing on the > 'str' part here: > [fieldscheck] > type = str > component = str > I'm not sure which plugin the [fieldscheck] section applies to. It isn't defined by TicketValidatorPlugin: http://trac-hacks.org/wiki/TicketValidatorPlugin > And does this look right for the next section? > [ticketvalidator] > new.required = type,component > Neither type nor component can have an empty value in Trac < 1.1.2. The [ticket] optional_fields option was added in Trac 1.1.2: http://trac.edgewall.org/wiki/TracIni#ticket-section I tested with 0.2dev-r14386 of TicketValidatorPlugin. Using two fields that allow an empty value, I can confirm that the plugin works correctly with Trac 1.0-stable. [ticketvalidator] new.required = version, milestone [image: Inline image 1] As for using it with your custom field, I can confirm the following works: [ticket-custom] the_custom = select the_custom.options = |one|two|thr|fou [ticketvalidator] new.required = the_custom [image: Inline image 2] -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
