Opened 11 years ago
Last modified 6 years ago
#10896 closed enhancement
Filter the required fields based on ticket type — at Version 1
Reported by: | Owned by: | Max Stewart | |
---|---|---|---|
Priority: | normal | Component: | TracTicketValidatorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description (last modified by )
Is it possible to filter the mandatory fields based on the ticket_type ?
If not, I have to select all mandatory fields across all ticket types - then when I try to submit a ticket that doesn;t even display that particular field, the UI errors :
i.e :
assigned_to = text '''assigned_to.hide_when_type = EPIC''' assigned_to.label = Assigned To assigned_to.order = 3
# These are the mandatory fields across all tickets
validate_author = true validate_author.tip = Please fill your valid email address validates = assigned_to, description, owner, milestone, reporter, summary
# assigned_to field does not exist for ticket of type EPIC
assigned_to.rule = .* assigned_to.tip = Please assign the ticket to a user description.rule = .* description.tip = Description field must be entered owner.rule = .* owner.tip = The ticket must have an owner selected milestone.rule = [A-Z].* milestone.tip = The planned iteration must be selected reporter.rule = .* reporter.tip = The ticket must have a reporter selected summary.rule = .*(A-Z| ).* summary.tip = Summary field can only contain alpha characters
On submit of ticket of type EPIC, Trac errors saying "Please assign the ticket to a user " even though there is no 'assigned_to' field for that ticket type
Note: See
TracTickets for help on using
tickets.