Re: [rt-users] url encoding

2016-06-22 Thread Joe Kirby
Got it!!! It worked great. Thank you so so much. Joe Joe Kirby , Assistant Vice President, Business Systems Division of Information Technology (DoIT) Support Response - http://www.umbc.edu/doit Administration 627 Office - 410-455-3020 Email - ki...@umbc.edu > On Jun 22, 2016, at 7:04 AM,

Re: [rt-users] url encoding

2016-06-22 Thread Joe Kirby
I really appreciate your efforts on this and when I did this, which seemed to look really good, I got the following error in the logs BTW, I tried it with comp and scomp [3056] [Wed Jun 22 11:01:32 2016] [error]: Template parsing error: Can't call method "comp" on an undefined value at

Re: [rt-users] url encoding

2016-06-22 Thread Christian Loos
OK, again a copy error, use this one https://umbc.co1.qualtrics.com/SE/?{$HTML::Mason::Commands::m->comp('/Elements/QueryString', SID => 'SV_4IbNK0n1unOaIEB', groupid => 'BSG', ticketid => $Ticket->Id, ticketowner => $Ticket->OwnerObj->EmailAddress,

Re: [rt-users] url encoding

2016-06-22 Thread Joe Kirby
Thank you for such a quick response I did what you said and it suppresses the value in the email but I am still not getting the value for query_string places within the url for some reason. I did remove the quotes as that was a last ditch effort the last time I tried Here is the result with

Re: [rt-users] url encoding

2016-06-22 Thread Christian Loos
OK, my fault ;-) Change my $query_string = $HTML::Mason::Commands::m->comp('/Elements/QueryString', to this (note the 's') my $query_string = $HTML::Mason::Commands::m->scomp('/Elements/QueryString', and this https://umbc.co1.qualtrics.com/SE/?{'$query_string'} should be this (no quotes)

Re: [rt-users] url encoding

2016-06-22 Thread Joe Kirby
Thank you both. It does do a great job of translating however it does not seem the field is actually available for the command line Here is the full template and then the email result. Am I missing a comma or something? TEMPLATE RT-Attach-Message: Yes Subject: {$Ticket->Subject}

Re: [rt-users] url encoding

2016-06-22 Thread Christian Loos
Am 22.06.2016 um 10:59 schrieb Emmanuel Lacour: > Nice idea, but is $m available in RT templates (never tried) ? You are right, you must replace line my $query_string = $m->comp('/Elements/QueryString', with my $query_string = $HTML::Mason::Commands::m->comp('/Elements/QueryString', Chris

Re: [rt-users] url encoding

2016-06-22 Thread Emmanuel Lacour
Le 22/06/2016 à 10:48, Christian Loos a écrit : >> https://umbc.co1.qualtrics.com/SE/?SID=SV_4IbNK0n1unOaIEB=BSG={$Ticket->Id}={$Ticket->OwnerObj->EmailAddress}={$Ticket->RequestorAddresses}={uri_escape($Ticket->Subject)} > > I would use the /Elements/QueryString RT component here, which will do

Re: [rt-users] url encoding

2016-06-22 Thread Christian Loos
> https://umbc.co1.qualtrics.com/SE/?SID=SV_4IbNK0n1unOaIEB=BSG={$Ticket->Id}={$Ticket->OwnerObj->EmailAddress}={$Ticket->RequestorAddresses}={uri_escape($Ticket->Subject)} I would use the /Elements/QueryString RT component here, which will do all the funny URI encoding and parameter

Re: [rt-users] url encoding

2016-06-22 Thread Emmanuel Lacour
Le 22/06/2016 à 01:16, Joe Kirby a écrit : > I have a template which provides a link to our survey tool and recently > I was asked to add subject to the parts included in the url. > > Since the ticket subject contains spaces, etc. that may not lend them > selves to a url > > I found a way to

[rt-users] url encoding

2016-06-21 Thread Joe Kirby
I have a template which provides a link to our survey tool and recently I was asked to add subject to the parts included in the url. Since the ticket subject contains spaces, etc. that may not lend them selves to a url I found a way to handle spaces but then I get a subject with a # sign