Using "__CurrentUser__" in a Custom Field "LinkValuesTo"

Hi,

I am trying to create a custom field that will contain a link with
something like:
http://host/script.pl?variable1=CurrentUser&variable2=id

This perl script will in return use RT::Client::REST to do far more
complicated tasks with the data passed to it.

Now, while id works, I’d like the field to also use
CurrentUser (as a search would do).

Is this possible ? I’ve looked through the documentation, google and
mailing lists but to no avail.

Thanks,

  • David

Hi,

I am trying to create a custom field that will contain a link with
something like:
http://host/script.pl?variable1=CurrentUser&variable2=id

This perl script will in return use RT::Client::REST to do far more
complicated tasks with the data passed to it.

Now, while id works, I’d like the field to also use
CurrentUser (as a search would do).

Is this possible ? I’ve looked through the documentation, google and
mailing lists but to no avail.

You’ll need to extend _FillInTemplateURL in ObjectCustomFieldValue

-kevin

Thanks,

I’ve simply added the following to %placeholders and it did the trick:
CurrentUser => { value => sub { $_[0]->CurrentUser->UserObj->Name
}, escape => 1 },

Appreciate it,

  • David