[rt-users] Adding New Status option
scott.dalzell
scott.dalzell at aveva.com
Wed Apr 30 09:11:21 EDT 2014
I am currently using RT4.0.12 and i am looking to add in a new status option
for tickets ('Testing').
In my RT_SiteConfig.pm i added the following (copied from RT_Config) and
then added in the Testing Status as shown below but the option fails to
show.
if i have set it up correctly i should only be able to select 'Testing' when
the ticket is currently 'Open'
#######################################
#Adding ticket status
Set(%Lifecycles,
default => {
initial => [ 'new' ],
active => [ 'open', 'stalled', 'Testing' ],
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 Testing)],
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)],
Testing => [qw(new open stalled)],
},
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
},
'open -> Testing' => {
label => 'Testing', # loc
},
],
},
# don't change lifecyle of the approvals, they are not capable to deal with
# custom statuses
approvals => {
initial => [ 'new' ],
active => [ 'open', 'stalled'],
inactive => [ 'resolved', 'rejected', 'deleted' ],
defaults => {
on_create => 'new',
on_merge => 'resolved',
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)],
Testing => [qw(new stalled resolved rejected deleted)],
},
rights => {
'* -> deleted' => 'DeleteTicket',
'* -> rejected' => 'ModifyTicket',
'* -> *' => '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
},
],
},
);
--
View this message in context: http://requesttracker.8502.n7.nabble.com/Adding-New-Status-option-tp57285.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users
mailing list