[rt-users] Custom Status 4.0.2
Randy Black
Randy.Black at Buckle.com
Mon Oct 10 18:07:51 EDT 2011
Using the sample, my config fails to load - it says it fails on line 98 which would correspond with the "defaults => {" line (notice the S on defaults, not the "default" line).
This example was found @ http://requesttracker.wikia.com/wiki/CustomStatusesInRt4 so either the wiki is wrong, I read and implemented something wrong or my sample is wrong....
Randy
Set(%Lifecycles,
default => {
initial => [ 'new' ],
active => [ 'open', 'ABC', 'At_Client', 'ABC-E', 'Developing', 'stalled' ],
inactive => [ 'resolved', 'rejected', 'deleted' ],
}
defaults => {
on_create => 'new',
on_merge => 'resolved',
approved => 'open',
denied => 'rejected',
},
transitions => {
=> [qw(new open resolved)],
# from => [ to list ],
new => [qw(open stalled ABC At_Client ABC-E Developing resolved rejected deleted)],
open => [qw(stalled ABC At_Client ABC-E Developing resolved rejected deleted)],
ABC => [qw(open stalled At_Client ABC-E Developing resolved rejected deleted)],
At_Client => [qw(open stalled ABC ABC-E Developing resolved rejected deleted)],
'ABC-E' => [qw(open stalled ABC At_Client Developing resolved rejected deleted)],
Developing => [qw(open stalled ABC At_Client ABC-E resolved rejected deleted)],
stalled => [qw(open ABC At_Client ABC-E Developing rejected resolved deleted)],
resolved => [qw(open ABC At_Client ABC-E Developing stalled rejected deleted)],
rejected => [qw(open ABC At_Client ABC-E Developing stalled resolved deleted)],
deleted => [qw(open ABC At_Client ABC-E Developing stalled rejected resolved)],
},
rights => {
'* -> deleted' => 'DeleteTicket',
'* -> *' => 'ModifyTicket',
},
actions => [
'new -> open' => { label => 'Open It', update => 'Respond' },
'new -> resolved' => { label => 'Resolve', update => 'Comment' },
'new -> rejected' => { label => 'Reject', update => 'Respond' },
'new -> deleted' => { label => 'Delete' },
'open -> stalled' => { label => 'Stall', update => 'Comment' },
'open -> resolved' => { label => 'Resolve', update => 'Comment' },
'open -> rejected' => { label => 'Reject', update => 'Respond' },
'stalled -> open' => { label => 'Open It' },
'resolved -> open' => { label => 'Re-open', update => 'Comment' },
'rejected -> open' => { label => 'Re-open', update => 'Comment' },
]
);
);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111010/2ebf4967/attachment.htm>
More information about the rt-users
mailing list