On Tue, Oct 11, 2011 at 11:15 PM, Randy Black <[email protected]> wrote: > Tried this - no dice.
What is "this"? I spotted two most obvious errors. Sadly you have more. Send the current variant. > Couldn't load RT config file RT_SiteConfig.pm:\n\nsyntax error at > /apps/rt4/etc/RT_SiteConfig.pm line 107, near "=>"\nMissing right curly or > square bracket at /apps/rt4/etc/RT_SiteConfig.pm line 143, at end of > line\nCompilation failed in require at /apps/rt4/sbin/../lib/RT/Config.pm > line 888.\n\t(in cleanup) Error while loading /apps/rt4/sbin/rt-server: > Couldn't load RT config file RT_SiteConfig.pm:\n\nsyntax error at > /apps/rt4/etc/RT_SiteConfig.pm line 107, near "=>"\nMissing right curly or > square bracket at /apps/rt4/etc/RT_SiteConfig.pm line 143, at end of > line\nCompilation failed in require at /apps/rt4/sbin/../lib/RT/Config.pm > line 888.\n > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Ruslan Zakirov > Sent: Tuesday, October 11, 2011 9:26 AM > To: Randy Black > Subject: Re: [rt-users] Custom Status 4.0.2 > > On Tue, Oct 11, 2011 at 2:07 AM, Randy Black <[email protected]> wrote: >> 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' ], >> } > > this closing bracket should be deleted. Most closing brackets need > comma or semi right after. > >> >> 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' }, >> ] >> ); >> ); > > these two closing parens with semicolons right after looks wrong as well. > > > -- > Best regards, Ruslan. > -- Best regards, Ruslan. -------- RT Training Sessions (http://bestpractical.com/services/training.html) * San Francisco, CA, USA October 18 & 19, 2011 * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011
