<div dir="ltr">Hi All,<div><br></div><div>How do I get the list of scrips of a queue? </div><div><br></div><div>Here is my snippet..</div><div><br></div><div><div>my $queue = RT::Queue->new($CurrentUser);</div><div>my $scrips = RT::Scrips->new($CurrentUser);</div><div>my ($status, $msg) = $queue->Load( 'help' );</div><div>my ($status, $msg) = $scrips->LimitToQueue( $queue->id );</div><div>my @queuescrips = $scrips->Prepared;</div><div><br></div><div>foreach my $scrip (@queuescrips) {</div><div>   print $scrip->Description;</div><div>}</div><div><br></div><div>When I run this I get the following error</div><div><br></div><div><div>[Sat Feb 13 22:06:54 2016] [critical]: Can't call method "Description" on unblessed reference at /usr/local/sbin/<a href="http://test.pl">test.pl</a> line 24. (/opt/rt4/lib/RT.pm:400)</div><div>Can't call method "Description" on unblessed reference at /usr/local/sbin/<a href="http://test.pl">test.pl</a> line 24.</div></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br><br></div>
</div></div>