wiki:TracTicketValidatorPlugin

Version 3 (modified by anonymous, 15 years ago) (diff)

--

Validate ticket fields

Notice: This plugin is unmaintained and available for adoption.

Description

  • support validate anonymous to input valid email address
  • support required fields
  • support match fields to regular expression

Bugs/Feature Requests

Existing bugs and feature requests for TracTicketValidatorPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:tracticketvalidatorplugin here].

Source

You can check out TracTicketValidatorPlugin from here using Subversion, or browse the source with Trac.

Example

  1. Validate anonymous author email address and make comment required:
    [components]
    ticketvalidator.* = enabled
    
    [ticketvalidator]
    validate_author = true
    validate_author.tip = Please fill your valid email address
    validates = comment
    comment.rule = .*
    comment.tip = Please input comment
    
  2. There is a very straightward implement of parent/child tickets, just prepend parent ticket number to the child ticket summary. For example, the parent ticket 234 summary is <#0>A parent ticket, the child ticket summary will be <#234>A child ticket. We can do validation like following:
    [components]
    ticketvalidator.* = enabled
    
    [ticketvalidator]
    validates = summary
    summary.rule = ^<#\d*>.*
    summary.tip = Please correct summary format
    

Recent Changes

17700 by rjollos on 2020-04-29 00:42:19
TracTicketValidator 0.5: Remove obsolete README
17288 by rjollos on 2018-09-17 06:04:38
TracTicketValidator 0.5: Allow empty or match

Patch by jsnell@…

Fixes #13473.

17106 by rjollos on 2018-04-07 20:50:06
TracTicketValidator 0.4: Allow name + email

Patch by lee.calabrese@….

Fixes #7022.

(more)

Author/Contributors

Author: richard
Contributors: