[rt-users] Odd number of elements...
Patrick G. Stoesser
lists at pgs-info.de
Fri Apr 19 11:50:24 EDT 2013
Am 12.04.2013 16:28, schrieb Kevin Falcone:
> [...]
>> ######## CUSTOM STATUS #################################################
>> [...]
>
>
> You deleted this part, which I assume is a custom Lifecycles config and
> is the #1 place where people accidentally mess up and have a bad data
> format.
>
Hello,
I just cheked my custom Lifecycles but could not find any error.
"returned" is my added status.
Here the original config:
Set(%Lifecycles,
default => {
initial => [ 'new' ],
active => [ 'open', 'stalled' ],
inactive => [ 'resolved', 'rejected', 'deleted' ],
defaults => {
on_create => 'new',
on_merge => 'resolved',
approved => 'open',
denied => 'rejected',
reminder_on_open => 'open',
reminder_on_resolve => 'resolved',
},
transitions => {
'' => [qw(new open resolved)],
# from => [ to list ],
new => [qw(open stalled resolved rejected deleted)],
open => [qw(new stalled resolved rejected deleted)],
stalled => [qw(new open rejected resolved deleted)],
resolved => [qw(new open stalled rejected deleted)],
rejected => [qw(new open stalled resolved deleted)],
deleted => [qw(new open stalled rejected resolved)],
},
rights => {
'* -> deleted' => 'DeleteTicket',
'* -> *' => 'ModifyTicket',
},
actions => [
'new -> open' => {
label => 'Open It', # loc
update => 'Respond',
},
'new -> resolved' => {
label => 'Resolve', # loc
update => 'Comment',
},
'new -> rejected' => {
label => 'Reject', # loc
update => 'Respond',
},
'new -> deleted' => {
label => 'Delete', # loc
},
'open -> stalled' => {
label => 'Stall', # loc
update => 'Comment',
},
'open -> resolved' => {
label => 'Resolve', # loc
update => 'Comment',
},
'open -> rejected' => {
label => 'Reject', # loc
update => 'Respond',
},
'stalled -> open' => {
label => 'Open It', # loc
},
'resolved -> open' => {
label => 'Re-open', # loc
update => 'Comment',
},
'rejected -> open' => {
label => 'Re-open', # loc
update => 'Comment',
},
'deleted -> open' => {
label => 'Undelete', # loc
},
],
},
and here is mine:
Set(%Lifecycles,
default => {
initial => [ 'new' ],
active => [ 'open', 'stalled', 'returned' ],
inactive => [ 'resolved', 'rejected', 'deleted' ],
defaults => {
on_create => 'new',
on_merge => 'resolved',
approved => 'open',
denied => 'rejected',
reminder_on_open => 'open',
reminder_on_resolve => 'resolved',
},
transitions => {
'' => [qw(new open resolved)],
# from => [ to list ],
new => [qw(open stalled returned resolved rejected
deleted)],
open => [qw(new stalled returned resolved rejected
deleted)],
stalled => [qw(new open rejected returned resolved deleted)],
returned => [qw(new open stalled rejected deleted)],
resolved => [qw(new open stalled rejected deleted)],
rejected => [qw(new open stalled returned resolved deleted)],
deleted => [qw(new open stalled rejected resolved)],
},
rights => {
'* -> deleted' => 'DeleteTicket',
'* -> *' => 'ModifyTicket',
},
actions => [
'new -> open' => {
label => 'Open It', # loc
update => 'Respond',
},
'new -> resolved' => {
label => 'Resolve', # loc
update => 'Comment',
},
'new -> rejected' => {
label => 'Reject', # loc
update => 'Respond',
},
'new -> deleted' => {
label => 'Delete', # loc
},
'new -> returned' => {
label => 'Return', # loc
},
'open -> stalled' => {
label => 'Stall', # loc
update => 'Comment',
},
'open -> resolved' => {
label => 'Resolve', # loc
update => 'Comment',
},
'open -> rejected' => {
label => 'Reject', # loc
update => 'Respond',
},
'open -> returned' => {
label => 'Return', # loc
},
'stalled -> open' => {
label => 'Open It', # loc
},
'resolved -> open' => {
label => 'Re-open', # loc
update => 'Comment',
},
'rejected -> open' => {
label => 'Re-open', # loc
update => 'Comment',
},
'deleted -> open' => {
label => 'Undelete', # loc
},
],
},
That's all.
Regards, Patrick
More information about the rt-users
mailing list