Opened 5 years ago

Closed 2 months ago

Last modified 2 months ago

#10896 closed enhancement (wontfix)

Filter the required fields based on ticket type

Reported by: phooper0001@… Owned by:
Priority: normal Component: TracTicketValidatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

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

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 5 years ago by anonymous

any news on this ?

comment:3 Changed 2 months ago by Ryan J Ollos

Owner: Max Stewart deleted

comment:4 Changed 2 months ago by Ryan J Ollos

Component: TicketValidatorPluginTracTicketValidatorPlugin
Priority: highnormal
Resolution: wontfix
Severity: majornormal
Status: newclosed
Type: defectenhancement
Last edited 2 months ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.