David5
June 21, 2011, 1:54pm
1
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,
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
David5
June 21, 2011, 4:06pm
3
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,