How to show a user-specific link in certain tickets?

Hi all,

I was wondering if there is a way to present a link to each user,
depending on what is in a ticket.

What I mean boils down to, in Perl/RT pseudocode:

print “”.get_user_data(CURRENTUSER)."/".CF.BAR if

This should then be shown in all ticket details. The background is that
I want users to be able to just click a link and have our Asterisk call
from their extension to whoever is in the CF.