[rt-users] Help with Scrip for child / dependent tickets

Jon Witts jwitts at queenmargarets.com
Fri May 22 10:03:40 EDT 2015


Hi Chris,

Thanks for the pointer; I will update the scrip accordingly.

Thanks,
Jon

-----------------------------------------------------

Jon Witts
Director of Digital Strategy
Queen Margaret's School
Escrick Park
York YO19 6EU

Telephone: 01904 727600
Fax: 01904 728150

Website: www.queenmargarets.com 

-----Original Message-----
From: Christian Loos [mailto:cloos at netcologne.de] 
Sent: 22 May 2015 13:38
To: Jon Witts
Subject: Re: Help with Scrip for child / dependent tickets

Hi,

> next unless( $l->BaseObj->Status =~ 
> /^(?:new|open|stalled|pending|planning|holiday)$/ );
Actually this line uses a hard coded list of statuses.
Once you change the lifecycle for a queue, this maybe won't work any more. So it is better to use the IsInactiveStatus or IsActiveStatus methods on a queue object, which respects lifecycle changes.

Chris



More information about the rt-users mailing list