[rt-users] [Fwd: Create Ticket but only if Custom Field is...]

Todd Chapman todd at chaka.net
Mon Nov 5 15:57:28 EST 2007


On 11/5/07, Tim Wilson <twilson at buffalo.k12.mn.us> wrote:
> >>> On Mon, Nov 5, 2007 at  2:14 PM, in message <472F7988.6020108 at factory7.com>,
> Matt Westfall <mwestfall at factory7.com> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
>
> > There are two TransactionObj there.  So would
> >
> > unless ( $self->TransactionObj->Type eq "Resolved" &&
> > $self->TransactionObj->Field == FIELD_ID )
> >        { return 0; }
> >
> > return 0 unless $self->TicketObj->FirstCustomFieldValue('Followup') =~
> > /Yes/i;
> >
> > 1;
> >
> >
> > The first check would 1) ensure that the ticket is being resolved &&
> > That the CustomField is Set.
> >
> > Then if Followup is Yes, it would then return 1?
> >
> > What is the purpose of self->transactionobj->Field == ####??
>
> Check the next paragraph on the wiki for the explanation:
>
> --snip--
> where FIELD_ID is the numeric ID of the particular custom field, CUSTOM_FIELD_NAME is the name of the custom field, and CUSTOM_FIELD_VALUE is the text you want to match. Get the FIELD_ID by browsing to the custom field's configuration screen in RT and looking at the URL. The end of the URL will contain the numeric ID of the custom field.
> --snip--
>
> FIELD_ID is a numeric value that you need to find by inspecting the URL in the browser.
>
> -Tim
>

Tim,

In this context FIELD_ID doesn't make sense. It's not set on a Resolve
transaction object.

-Todd

>
> --
> Tim Wilson, Director of Technology
> Buffalo-Hanover-Montrose Schools
> 214 1st Ave NE   Buffalo, MN  55313
> ph: 763.682.8740  fax: 763.682.8743  http://www.buffalo.k12.mn.us
>
>
>
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
>
> If you sign up for a new RT support contract before December 31, we'll take
> up to 20 percent off the price. This sale won't last long, so get in touch today.
>     Email us at sales at bestpractical.com or call us at +1 617 812 0745.
>
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



More information about the rt-users mailing list