Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

Callbacks and static/dynamic paths

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


lists at panic

Feb 26, 2008, 3:53 PM

Post #1 of 3 (329 views)
Permalink
Callbacks and static/dynamic paths

Hi,

I've been trawling through the archived posts here today and I've worked
out how to do a callback but I've come across something which I'm not sure
is possible to get around nicely. As follows:

I've created a callback for Tickets/Elements/Tabs which adds a new button
to the actions list beside comment, reply, resolve etc. Anyway, I'm
wanting this button to link to another server but when I put the path:

$actions->{'zz'} = { title => loc('ButtonName'), path =>
'http://anotherserver/page?ticketid='.$Ticket->id };

The link ends up like:

http://RTServer/http://anotherserver/page?ticketid=2560

Is there any way to get around this? I could create a page on the request
tracker server which takes the GET value and then generates a page with
the below statement in it but it seems a bit messy, any help would be
greatly appreciated.

<meta http-equiv="refresh"
content="2;url=http://anotherserver/page?ticketid=2560">

Cheers,
Karl


_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


todd at chaka

Feb 26, 2008, 7:00 PM

Post #2 of 3 (312 views)
Permalink
Re: Callbacks and static/dynamic paths [In reply to]

Karl,

Try replacing "path" with "html" and then turn it into an <a> element.

-Todd

On 2/26/08, lists[at]panic.co.nz <lists[at]panic.co.nz> wrote:
> Hi,
>
> I've been trawling through the archived posts here today and I've worked
> out how to do a callback but I've come across something which I'm not sure
> is possible to get around nicely. As follows:
>
> I've created a callback for Tickets/Elements/Tabs which adds a new button
> to the actions list beside comment, reply, resolve etc. Anyway, I'm
> wanting this button to link to another server but when I put the path:
>
> $actions->{'zz'} = { title => loc('ButtonName'), path =>
> 'http://anotherserver/page?ticketid='.$Ticket->id };
>
> The link ends up like:
>
> http://RTServer/http://anotherserver/page?ticketid=2560
>
> Is there any way to get around this? I could create a page on the request
> tracker server which takes the GET value and then generates a page with
> the below statement in it but it seems a bit messy, any help would be
> greatly appreciated.
>
> <meta http-equiv="refresh"
> content="2;url=http://anotherserver/page?ticketid=2560">
>
> Cheers,
> Karl
>
>
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


lists at panic

Feb 26, 2008, 7:38 PM

Post #3 of 3 (312 views)
Permalink
Re: Callbacks and static/dynamic paths [In reply to]

Thanks heaps for that Todd, works like a charm.

Cheers,
Karl

> Karl,
>
> Try replacing "path" with "html" and then turn it into an <a> element.
>
> -Todd
>
> On 2/26/08, lists[at]panic.co.nz <lists[at]panic.co.nz> wrote:
>> Hi,
>>
>> I've been trawling through the archived posts here today and I've
>> worked
>> out how to do a callback but I've come across something which I'm not
>> sure
>> is possible to get around nicely. As follows:
>>
>> I've created a callback for Tickets/Elements/Tabs which adds a new
>> button
>> to the actions list beside comment, reply, resolve etc. Anyway, I'm
>> wanting this button to link to another server but when I put the path:
>>
>> $actions->{'zz'} = { title => loc('ButtonName'), path =>
>> 'http://anotherserver/page?ticketid='.$Ticket->id };
>>
>> The link ends up like:
>>
>> http://RTServer/http://anotherserver/page?ticketid=2560
>>
>> Is there any way to get around this? I could create a page on the
>> request
>> tracker server which takes the GET value and then generates a page with
>> the below statement in it but it seems a bit messy, any help would be
>> greatly appreciated.
>>
>> <meta http-equiv="refresh"
>> content="2;url=http://anotherserver/page?ticketid=2560">
>>
>> Cheers,
>> Karl
>>
>>
>> _______________________________________________
>> List info:
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>>
>


_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.