summaryrefslogtreecommitdiff
path: root/rt/etc/initialdata
diff options
context:
space:
mode:
authormark <mark>2011-05-13 23:20:53 +0000
committermark <mark>2011-05-13 23:20:53 +0000
commitcd34706f94273cf381952f57c5fcb7d6910fbae0 (patch)
tree8dc42aed01a79850884b1f9e70039336e6e806cd /rt/etc/initialdata
parent20950bb21ee5dd8839a05dfcd58efa0a98e48e5a (diff)
notify on custom field change, #11274
Diffstat (limited to 'rt/etc/initialdata')
-rw-r--r--rt/etc/initialdata30
1 files changed, 30 insertions, 0 deletions
diff --git a/rt/etc/initialdata b/rt/etc/initialdata
index 9b5506b02..fc2ed2ffb 100644
--- a/rt/etc/initialdata
+++ b/rt/etc/initialdata
@@ -97,6 +97,13 @@
{ Name => 'Extract Subject Tag', # loc
Description => 'Extract tags from a Transaction\'s subject and add them to the Ticket\'s subject.', # loc
ExecModule => 'ExtractSubjectTag' },
+
+ #freeside
+ { Name => 'Set Priority',
+ Description => 'Set ticket priority',
+ ExecModule => 'SetPriority',
+ Argument => '',
+ },
);
@ScripConditions = (
@@ -185,6 +192,18 @@
ExecModule => 'ReopenTicket',
},
+ #freeside
+ { Name => 'On Custom Field Transaction',
+ Description => 'When a custom field is changed',
+ ExecModule => 'CustomFieldTransaction',
+ ApplicableTransTypes => 'Any',
+ },
+ { Name => 'On Custom Field Change',
+ Description => 'When a custom field is changed to some value',
+ ExecModule => 'CustomFieldChange',
+ ApplicableTransTypes => 'Any',
+ },
+
);
@Templates = (
@@ -486,6 +505,17 @@ Hour: { $SubscriptionObj->SubValue('Hour') }
}
}
},
+ { Queue => 0,
+ Name => 'Custom Field Transaction',
+ Description => 'Custom field value changed',
+ Content => q[Subject: {$Transaction->BriefDescription()}
+
+{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}
+
+{$Transaction->Content()}
+],
+ },
+
);
# }}}