[rt-users] PErl question for RT Status values

Jeff Voskamp javoskam at uwaterloo.ca
Mon Feb 1 15:50:52 EST 2010


On 02/01/2010 02:45 PM, Ken Crocker wrote:
> To list,
>
> In the past (3.6.4) I was able to add a couple values for my @active
> ticket statuses by modifying the RT_SiteCOnfig.pm values thus:
>
> @ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled')
> unless @ActiveStatus;
>
> Now, with the more stringent syntax, I have this:
>
> Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));
>
> The problem is that the single quotes end up as part of the value. I
> can't just remove them because I need to protect the integreity of two
> values that include an embedded space ('pending QA' and 'QA approvd').
>
> I'm only a perl newbie, so I'm not sure how to get around this problem.
> Can anyone out there show me the correct syntax to add my two status
> values and keep the integrity of the embedded space?
>
> Thanks.
>
> Kenn
> LBNL
>    
Try
Set( @ActiveStatus, ('new', 'open', 'pending QA', 'QA approvd', 'stalled'));

You can use quotes or qw, but not both.

Jeff



More information about the rt-users mailing list