Modify

Opened 22 months ago

Last modified 21 months ago

#10896 new defect

Filter the required fields based on ticket type

Reported by: phooper0001@… Owned by: superafroman
Priority: high Component: TicketValidatorPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

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 (2)

comment:1 Changed 21 months ago by rjollos

  • Description modified (diff)

comment:2 Changed 21 months ago by anonymous

any news on this ?

Add Comment

Modify Ticket

Action
as new The owner will remain superafroman.
Author


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

 
Note: See TracTickets for help on using tickets.