[Bps-public-commit] rt-extension-changemanagement branch devel updated. 4205e38597c2fd63011683a0615e75be73060bc6

BPS Git Server git at git.bestpractical.com
Fri Jan 21 15:02:37 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-changemanagement".

The branch, devel has been updated
       via  4205e38597c2fd63011683a0615e75be73060bc6 (commit)
      from  724c71c95a745a698274406ef7c94b8d957237de (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4205e38597c2fd63011683a0615e75be73060bc6
Author: Jason Crome <jcrome at bestpractical.com>
Date:   Fri Jan 21 10:00:20 2022 -0500

    Fixed lifecycle status bug; add add'l initialdata
    
    Lifecycle had some rules mapped to a non-existent status in the change
    management queue. initialdata was missing some descriptions for custom
    fields.

diff --git a/etc/Lifecycle_config.pm b/etc/Lifecycle_config.pm
index a59efce..dc86ba7 100644
--- a/etc/Lifecycle_config.pm
+++ b/etc/Lifecycle_config.pm
@@ -11,7 +11,7 @@ Set(%Lifecycles,
         transitions => {
             # The following transition is required for ticket creation
             ''                   => [ qw( Requested ) ],
-            Submitted            => [ qw( Approved Cancelled Rejected deleted ) ],
+            Requested            => [ qw( Approved Cancelled Rejected deleted ) ],
             Approved             => [ 'In Progress', qw( Cancelled Rejected deleted ) ],
             'In Progress'        => [ 'Partially Deployed', qw( Deployed Failed Cancelled deleted ) ],
             'Partially Deployed' => [ qw( Deployed Failed Cancelled deleted ) ],
diff --git a/etc/initialdata b/etc/initialdata
index 9546ee8..b6669fc 100644
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -12,30 +12,11 @@ our @Queues = (
 );
 
 our @CustomFields = (
-    {
-        Name        => 'Change Status',
-        Type        => 'SelectSingle',
-        LookupType  => 'RT::Queue-RT::Ticket',
-        Description => '',
-        ApplyTo     => ['Change Management'],
-        MaxValues   => 1,
-        RenderType  => 'Dropdown',
-        Values      => [
-            { Name => 'Requested',          SortOrder => 1 },
-            { Name => 'Approved',           SortOrder => 2 },
-            { Name => 'Deployed',           SortOrder => 3 },
-            { Name => 'Partially Deployed', SortOrder => 4 },
-            { Name => 'Failed',             SortOrder => 5 },
-            { Name => 'Cancelled',          SortOrder => 6 },
-            { Name => 'Rejected',           SortOrder => 7 },
-        ],
-        SortOrder   => 1
-    },
     {
         Name        => 'Change Category',
+        Description => 'High-level categorization of the requested change',
         Type        => 'SelectSingle',
         LookupType  => 'RT::Queue-RT::Ticket',
-        Description => '',
         ApplyTo     => ['Change Management'],
         MaxValues   => 1,
         RenderType  => 'Dropdown',
@@ -49,13 +30,13 @@ our @CustomFields = (
             { Name => 'New Hardware Install',   SortOrder => 7 },
             { Name => 'Project Implementation', SortOrder => 7 },
         ],
-        SortOrder   => 2
+        SortOrder   => 1
     },
     {
         Name        => 'Change Type',
-        Type        => 'SelectSingle',
+        Description => 'Kind of service change being requested',
         LookupType  => 'RT::Queue-RT::Ticket',
-        Description => '',
+        Type        => 'SelectSingle',
         ApplyTo     => ['Change Management'],
         MaxValues   => 1,
         RenderType  => 'Dropdown',
@@ -64,23 +45,25 @@ our @CustomFields = (
             { Name => 'Normal',    SortOrder => 2 },
             { Name => 'Emergency', SortOrder => 3 },
         ],
-        SortOrder   => 3
+        SortOrder   => 2
     },
     {
-        Name              => 'Deployed Date',
-        Description       => 'Date the change was deployed',
-        LookupType        => 'RT::Queue-RT::Ticket',
-        Type              => 'DateTime',
-        MaxValues         => 1,
-        SortOrder         => 4,
+        Name        => 'Deployed Date',
+        Description => 'Date the change was deployed',
+        LookupType  => 'RT::Queue-RT::Ticket',
+        Type        => 'DateTime',
+        ApplyTo     => ['Change Management'],
+        MaxValues   => 1,
+        SortOrder   => 3,
     },
     {
-        Name              => 'Rollback Plan',
-        Description       => 'Explain the backout plan to restore normal operations',
-        LookupType        => 'RT::Queue-RT::Ticket',
-        Type              => 'Text',
-        MaxValues         => 1,
-        SortOrder         => 5,
+        Name        => 'Rollback Plan',
+        Description => 'Explain the backout plan to restore normal operations',
+        LookupType  => 'RT::Queue-RT::Ticket',
+        Type        => 'Text',
+        ApplyTo     => ['Change Management'],
+        MaxValues   => 1,
+        SortOrder   => 4,
     },
 );
 
-----------------------------------------------------------------------

Summary of changes:
 etc/Lifecycle_config.pm |  2 +-
 etc/initialdata         | 55 +++++++++++++++++--------------------------------
 2 files changed, 20 insertions(+), 37 deletions(-)


hooks/post-receive
-- 
rt-extension-changemanagement


More information about the Bps-public-commit mailing list