use constant ENUM_DEFAULTS => {
bug_severity => ['blocker', 'critical', 'major', 'normal',
'minor', 'trivial', 'enhancement'],
- priority => ["P1","P2","P3","P4","P5"],
+ priority => ["Highest", "High", "Normal", "Low", "Lowest", "---"],
op_sys => ["All","Windows","Mac OS","Linux","Other"],
rep_platform => ["All","PC","Macintosh","Other"],
bug_status => ["UNCONFIRMED","NEW","ASSIGNED","REOPENED","RESOLVED",
if 'bug_file_loc' not in data:
data['bug_file_loc'] = 'http://' # Yes, Bugzilla needs this
if 'priority' not in data:
- data['priority'] = 'P2'
+ data['priority'] = 'Normal'
def validate_fields(data):
# Fields for validation
# Mapping from Severity,Priority to priority
# At our site, the Severity,Priority fields have degenerated
# into a 9-level priority field.
- my($priority) = "P1";
+ my($priority) = "Highest";
if (defined($pr_data{"Severity"}) && defined($pr_data{"Severity"})) {
if ($pr_data{"Severity"} eq "critical") {
if ($pr_data{"Priority"} eq "high") {
- $priority = "P1";
+ $priority = "Highest";
} else {
- $priority = "P2";
+ $priority = "High";
}
} elsif ($pr_data{"Severity"} eq "serious") {
if ($pr_data{"Priority"} eq "low") {
- $priority = "P4";
+ $priority = "Low";
} else {
- $priority = "P3";
+ $priority = "Normal";
}
} else {
if ($pr_data{"Priority"} eq "high") {
- $priority = "P4";
+ $priority = "Low";
} else {
- $priority = "P5";
+ $priority = "Lowest";
}
}
}
priority = self.fields["Priority"]
if severity == "critical":
if priority == "high":
- self.fields["priority"] = "P1"
+ self.fields["priority"] = "Highest"
else:
- self.fields["priority"] = "P2"
+ self.fields["priority"] = "High"
elif severity == "serious":
if priority == "low":
- self.fields["priority"] = "P4"
+ self.fields["priority"] = "Low"
else:
- self.fields["priority"] = "P3"
+ self.fields["priority"] = "Normal"
else:
if priority == "high":
- self.fields["priority"] = "P4"
+ self.fields["priority"] = "Low"
else:
- self.fields["priority"] = "P5"
+ self.fields["priority"] = "Lowest"
self.fields["priority"] = SqlQuote(self.fields["priority"])
state = self.fields["State"]
if (state == "open" or state == "analyzed") and self.fields["userid"] != 3:
<h2><a name="priority">Priority</a></h2>
This field describes the importance and order in which [% terms.abug %]
-should be fixed. This field is utilized by the
-programmers/engineers to prioritize their work to be done. The
-available priorities range from <b>P1</b> (most important) to
-<b>P5</b> (least important).
+should be fixed compared to other [% terms.bugs %]. This field is utilized
+by the programmers/engineers to prioritize their work to be done.
<h2><a name="bug_severity">Severity</a></h2>
This field describes the impact of [% terms.abug %].