[Rt-commit] rtir branch, 4.0/extract-domain, updated. 4.0.1rc1-143-gb1ed9ccb

Craig Kaiser craig at bestpractical.com
Thu May 28 13:45:21 EDT 2020


The branch, 4.0/extract-domain has been updated
       via  b1ed9ccb06ca07c3b7a62d7fd42a5434b00c14c4 (commit)
      from  0b6257b3616348db9dba2d5afd441583cd1885fb (commit)

Summary of changes:
 etc/upgrade/{4.0.2 => 5.0.0}/content | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
 copy etc/upgrade/{4.0.2 => 5.0.0}/content (91%)

- Log -----------------------------------------------------------------
commit b1ed9ccb06ca07c3b7a62d7fd42a5434b00c14c4
Author: craig kaiser <craig at bestpractical.com>
Date:   Thu May 28 13:40:50 2020 -0400

    Add upgrade script for extract domain features

diff --git a/etc/upgrade/5.0.0/content b/etc/upgrade/5.0.0/content
new file mode 100644
index 00000000..2b3cbd12
--- /dev/null
+++ b/etc/upgrade/5.0.0/content
@@ -0,0 +1,55 @@
+
+our @CustomFields = (
+    {
+        Name        => 'Domain',
+        Type        => 'FreeformMultiple',
+        Queue       => [ 'Incidents', 'Incident Reports', 'Investigations', 'Countermeasures' ],
+        Disabled    => 0,
+        Description => 'Domain for RTIR queues',
+        LinkValueTo =>
+            '__WebPath__/RTIR/Tools/Lookup.html?type=host&q=__CustomField__&ticket=__id__'
+    }
+);
+
+
+our @ScripActions = (
+    {   Name        => 'RTIR parse message for Domains',                 # loc
+        Description => 'Set Domain custom field from message content',   # loc
+        ExecModule  => 'RTIR_FindDomain',
+    },
+    {   Name        => 'RTIR merge Domains',                                 # loc
+        Description => 'Merge multiple Domains on ticket merge',             # loc
+        ExecModule  => 'RTIR_MergeDomains',
+    },
+);
+
+
+our @Scrips = (
+    {
+        Description    => "SetDomainFromContent",
+        Queue          => [ 'Incidents', 'Incident Reports', 'Investigations', 'Countermeasures' ],
+        ScripCondition => 'On Correspond',
+        ScripAction    => 'RTIR parse message for Domains',
+        Template       => 'Blank'
+    },
+    {
+        Description    => "SetDomainFromContent",
+        Queue          => [ 'Incidents', 'Incident Reports', 'Investigations', 'Countermeasures' ],
+        ScripCondition => 'On Create',
+        ScripAction    => 'RTIR parse message for Domains',
+        Template       => 'Blank'
+    },
+    {   Description => "MergeDomains",
+        Queue =>
+            [ 'Incidents', 'Incident Reports', 'Investigations', 'Countermeasures' ],
+        ScripCondition => 'RTIR Merge',
+        ScripAction    => 'RTIR merge Domains',
+        Template       => 'Blank'
+    },
+    {   Description    => "On Linking To Incident Copy Domains",
+        Queue          => 'Incident Reports',
+        ScripCondition => 'RTIR Linking To Incident',
+        ScripAction    => 'RTIR merge Domains',
+        Template       => 'Blank'
+    },
+);

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


More information about the rt-commit mailing list