Modify

Opened 11 years ago

Closed 6 years ago

Last modified 6 years 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 11 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 11 years ago by anonymous

any news on this ?

comment:3 Changed 6 years ago by Ryan J Ollos

Owner: Max Stewart deleted

comment:4 Changed 6 years ago by Ryan J Ollos

Component: TicketValidatorPluginTracTicketValidatorPlugin
Priority: highnormal
Resolution: wontfix
Severity: majornormal
Status: newclosed
Type: defectenhancement
Version 0, edited 6 years ago by Ryan J Ollos (next)

Modify Ticket

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

Add Comment


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

 
Note: See TracTickets for help on using tickets.