Bugzilla IDs href'd in a custom field?

Hi

I’m trying to make the bugzilla IDs we put in tickets more visible,
by putting them into a custom field. That in itself isn’t a problem, but
making clickable URLs out of them is proving more dificult.

I’ve modified RT::ObjectCustomFieldValue->Content to turn a {4,6} digit
number into:
xxxx
but something between that and the browser is turning it into
’<a href"…’.

Anyone any idea where the conversion is taking place, or how I could
protect it? Or has anyone done this sort of bugzilla integration in
another way? Could I use a callback to achieve this?

(We’re already using a variation of
http://wiki.bestpractical.com/index.cgi?ClickableLinks but additional
correspondence makes the links less visible)

Cheers
Toby

At Monday 12/19/2005 09:01 AM, Toby Darling wrote:

Hi

I’m trying to make the bugzilla IDs we put in tickets more visible,
by putting them into a custom field. That in itself isn’t a problem, but
making clickable URLs out of them is proving more dificult.

I’ve modified RT::ObjectCustomFieldValue->Content to turn a {4,6} digit
number into:
xxxx
but something between that and the browser is turning it into
’<a href"…’.

Anyone any idea where the conversion is taking place, or how I could
protect it? Or has anyone done this sort of bugzilla integration in
another way? Could I use a callback to achieve this?

(We’re already using a variation of
http://wiki.bestpractical.com/index.cgi?ClickableLinks but additional
correspondence makes the links less visible)

Cheers
Toby

Toby,

Probably not a good idea to mix HTML into the perl API. Any kind of
interface (web, email, perl script etc.) should be able to use the API and
get sensible data. I’d recommend putting your code into the Mason component
that displays the custom field.

Steve

I use, the “refers to” field for bugzilla ID’s. works well. Makes link.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-
bounces@lists.bestpractical.com] On Behalf Of Stephen Turner
Sent: Monday, December 19, 2005 8:05 AM
To: Toby Darling; rt-users
Subject: Re: [rt-users] Bugzilla IDs href’d in a custom field?

At Monday 12/19/2005 09:01 AM, Toby Darling wrote:

Hi

I’m trying to make the bugzilla IDs we put in tickets more visible,
by putting them into a custom field. That in itself isn’t a problem,
but

making clickable URLs out of them is proving more dificult.

I’ve modified RT::ObjectCustomFieldValue->Content to turn a {4,6}
digit

number into:
xxxx
but something between that and the browser is turning it into
’<a href"…’.

Anyone any idea where the conversion is taking place, or how I could
protect it? Or has anyone done this sort of bugzilla integration in
another way? Could I use a callback to achieve this?

(We’re already using a variation of
http://wiki.bestpractical.com/index.cgi?ClickableLinks but additional
correspondence makes the links less visible)

Cheers
Toby

Toby,

Probably not a good idea to mix HTML into the perl API. Any kind of
interface (web, email, perl script etc.) should be able to use the API
and

Nathan Oyler wrote:

I’m trying to make the bugzilla IDs we put in tickets more visible,
by putting them into a custom field. That in itself isn’t a problem,

I use, the “refers to” field for bugzilla ID’s. works well. Makes link.

Thanks Nathan, I hadn’t noticed you could put anything other than ticket
IDs in there. Sorted.

RT rocks! My thanks to the list, and BP team.

Cheers
Toby