[Rt-devel] Any ideas on approach to add Additional "placeholders" for CustomField links?
Kevin Falcone
falcone at bestpractical.com
Mon Feb 8 17:18:46 EST 2010
On Mon, Feb 08, 2010 at 02:15:32PM -0500, Brian D wrote:
> Guys,
>
> I have some opportunities where it would be advantageous to link to
> other systems using the CustomField links, but I would like to be able
> to use information from potentially multiple other ticket
> properties/custom field values in my link creation. Right now this is
> not generically permitted, but it would seem like it would be a good
> general-purpose thing to add that others could benefit from.
>
> In looking at ObjectCustomFieldvalue_Overlay.pm, I do not see a
> "clean" way to extend the available %placeholders to do what I was
> thinking.
>
> The main problem is that when you are in that code, $self is the
> custom field obj, not the parent ticket.
$self->Object should get you the Ticket
-kevin
> So I'm looking for suggestions on what would be the best way to add
> placeholders generically for the other custom fields of the ticket?
>
> For reference, the URLs I would like to craft might be something along
> the lines of:
>
>
> http://assetsystem/lookup?user=__CF.UserName__&machine=__CF.hostname__&ref=ticket-__id__
>
>
> Having the ability to call some custom code to craft URLs where more
> logic vs simple template replacement could also be useful, but in the
> cases above, it's not required.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20100208/c7764505/attachment.pgp
More information about the Rt-devel
mailing list