[Rt-commit] rtir branch, 5.0/use-core-custom-field-default-values, updated. 4.0.1rc1-180-g2d144551

Jim Brandt jbrandt at bestpractical.com
Fri Jun 12 09:16:15 EDT 2020


The branch, 5.0/use-core-custom-field-default-values has been updated
       via  2d144551bae010734ba0456c52e949b9260a11c3 (commit)
       via  cdaac1d01a1b42784d8cb346e2a0c11a9f7a5ea7 (commit)
      from  cba2a5b93f848ea2cf6254797dc5350fa082edd3 (commit)

Summary of changes:
 MANIFEST                                                 |  1 +
 docs/UPGRADING-5.0                                       | 16 ++++++++++++----
 .../RTIR/Admin/Queues/DefaultValues.html/Init}           | 10 +++++++---
 3 files changed, 20 insertions(+), 7 deletions(-)
 copy html/{RTIR/Tools/index.html => Callbacks/RTIR/Admin/Queues/DefaultValues.html/Init} (91%)

- Log -----------------------------------------------------------------
commit cdaac1d01a1b42784d8cb346e2a0c11a9f7a5ea7
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Jun 12 08:57:11 2020 -0400

    Display RTIR::Ticket CF groupings on queue admin Default Values tab
    
    By default, RT shows only RT::Ticket CF groupings.

diff --git a/MANIFEST b/MANIFEST
index 5f96ce7b..ff0bae50 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -55,6 +55,7 @@ etc/upgrade/3.3.3/content
 etc/upgrade/3.3.4/content
 etc/upgrade/remove_files
 etc/upgrade/rtir-2.4-upgrade.pl.in
+html/Callbacks/RTIR/Admin/Queues/DefaultValues.html/Init
 html/Callbacks/RTIR/autohandler/SuccessfulLogin
 html/Callbacks/RTIR/Elements/Header/Head
 html/Callbacks/RTIR/Elements/MakeClicky/Default
diff --git a/html/Callbacks/RTIR/Admin/Queues/DefaultValues.html/Init b/html/Callbacks/RTIR/Admin/Queues/DefaultValues.html/Init
new file mode 100644
index 00000000..79ce08fc
--- /dev/null
+++ b/html/Callbacks/RTIR/Admin/Queues/DefaultValues.html/Init
@@ -0,0 +1,55 @@
+%# BEGIN BPS TAGGED BLOCK {{{
+%#
+%# COPYRIGHT:
+%#
+%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC
+%#                                          <sales at bestpractical.com>
+%#
+%# (Except where explicitly superseded by other copyright notices)
+%#
+%#
+%# LICENSE:
+%#
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%#
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%#
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+%# 02110-1301 or visit their web page on the internet at
+%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+%#
+%#
+%# CONTRIBUTION SUBMISSION POLICY:
+%#
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%#
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%#
+%# END BPS TAGGED BLOCK }}}
+
+<%init>
+# To display RTIR CF groupings on queue config Default Values tab
+unshift @{$Groupings}, RT::CustomField->CustomGroupings('RTIR::Ticket');
+</%init>
+<%args>
+$Groupings
+</%args>

commit 2d144551bae010734ba0456c52e949b9260a11c3
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Jun 12 09:16:02 2020 -0400

    Update CustomFieldDefaults upgrade notes

diff --git a/docs/UPGRADING-5.0 b/docs/UPGRADING-5.0
index 42ee5e2b..5ec286d4 100644
--- a/docs/UPGRADING-5.0
+++ b/docs/UPGRADING-5.0
@@ -57,10 +57,18 @@ but you can revoke these rights to restore the previous RTIR menu.
 
 =item *
 
-As RT already supports to set default values for custom fields, the
-config C<%RTIR_CustomFieldsDefaults> has been simplified. To set default
-values, now you need to go to custom field admin page instead. The
-conditional default values like "Resolution" is still retained.
+Default values for RTIR custom fields previously set using the configuration
+option C<%RTIR_CustomFieldsDefaults> are now set using RT's core custom
+field default value feature. If you had defaults previously set, they will
+be migrated automatically during upgrade.
+
+RT supports setting these defaults both in the custom field configuration,
+which will set a default for all queues, and in the queue configuration
+for each individual queue.
+
+C<%RTIR_CustomFieldsDefaults> now sets default values only for "Resolution"
+because the Resolution values are set based on the status of the
+Incident when closed.
 
 =back
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list