[rt-users] Custom condition not working (simple)

Kevin Falcone falcone at bestpractical.com
Wed Dec 17 14:14:57 EST 2014

On Wed, Dec 17, 2014 at 06:11:03PM +0000, Matt Smith wrote:
> How come this does not work?  I’ve seen some examples of the “DependOnBy” use
> returning a numeric value, but looking at RT documentation, it appears it
> should return an array?  Basically, I want it to return 1 if there are no child
> tickets associated with the current ticket. 

First up - it's DependedOnBy not DependOnBy, and it returns an
RT::Links object, so I'm surprised you've seen numeric comparisons.

I suspect you wanted

> Is there a way to test RT perl code without trial and error, or do you just
> have to incorporate some logging?

Logging is your friend.


You can also always write a command line program to test things
quickly, which is what I usually do.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 221 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141217/baecfebb/attachment.sig>

More information about the rt-users mailing list