[Rt-commit] r19290 - rtir/2.5/trunk
ruz at bestpractical.com
ruz at bestpractical.com
Sun Apr 19 22:45:57 EDT 2009
Author: ruz
Date: Sun Apr 19 22:45:57 2009
New Revision: 19290
Added:
rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods
Log:
* add TODO log of CFs works for tracking changes and preparing upgrade docs
Added: rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods
==============================================================================
--- (empty file)
+++ rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods Sun Apr 19 22:45:57 2009
@@ -0,0 +1,39 @@
+* Names of custom fields were localized in RTIR, we should localize them in RTIR as well
+
+* Stripping of _RTIR_ prefix results in changes of searches: Formats and Queries, write
+ an upgrader for saved searches
+
+* Rename some fields to variants with spaces
+
+* Custom fields in Incident display are very specific and mixed with generic RT properties
+
+* Description CF in Incidents had Cols => 60 argument, check if we preserve behaviour
+
+* On edit State need special treating for Blocks
+
+* Constituency has special treating on edit depeding on propagation mode
+
+Implemented changes:
+
+* RTIR's custom fields are renamed, no more '_RTIR_' prefix. As well some CFs had two
+ word names, spaces have been added. Handled in upgrade script.
+
+* Autoreply and BlockRemoved templates in blocks queue need changes. Block that adds
+ CF values to the mail should be:
+
+ { my $output = "";
+ my @mailfields = ( 'IP', 'Netmask', 'Port', 'Where Blocked' );
+
+ my $CustomFields = $Ticket->QueueObj->TicketCustomFields;
+ while ( my $CustomField = $CustomFields->Next ) {
+ my $name = $CustomField->Name;
+ next unless grep lc $_ eq lc $name, @mailfields;
+
+ my $Values = $Ticket->CustomFieldValues( $CustomField->Id );
+ while ( my $Value = $Values->Next ) {
+ $output .= $name .": ". $Value->Content ."\n";
+ }
+ }
+ return $output;
+ }
+
More information about the Rt-commit
mailing list