-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
73 lines (55 loc) · 2.21 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
NAME
RT::Extension::MoveRules - control ticket movements between queues
DESCRIPTION
If you move tickets between queues a lot then probably you want to
control this process. This extension allows you to configure rules which
are required to move a ticket from a queue to another queue, for example
if custom field X is equal to Y then a ticket can be moved from queue A
to B. As well you can define which fields should be set before move.
INSTALLATION
This extension works with RT 3.8 and depends on RT::Condition::Complex.
Otherwise installation process is usuall:
perl Makefile.PL
make
make install
CONFIGURATION
Extension is controlled with one config option @MoveRules with the
following syntax:
Set( @MoveRules,
{
From => 'queue',
To => 'queue',
Rule => 'a rule',
Condition => 'a rule',
ShowAction => 1/0,
},
...
);
From and To
These keys define queues either by name or id. Both are mandatory
options. Example:
Set( @MoveRules,
{ From => 'X', To => 'Y' },
);
Such configuration allows users to move tickets from queue "X" to "Y",
but not any other move.
ShowAction
Boolean option that controls whether action for this move is displayed
in the action menu (Open, Take) or not. By default no actions are
displayed.
Rule
Rule is a condition defining additional limits on the move. This is a
string with syntax implemented by RT::Condition::Complex and
RT::Extension::ColumnMap. Syntax is close to TicketSQL, slightly
different, some examples:
Rule => 'Subject = "good" AND Status = "open"',
Condition
Condition is very similar to "Rule". The difference is that users can
not see a condition until they try to move a ticket.
Moving limits between condition is up to you, but probably condition is
better to leave with checks if a field is empty or not. For example:
Condition => 'CustomField{"X"} is not empty',
LICENSE
Under the same terms as perl itself.
AUTHOR
Ruslan Zakirov <[email protected]>