Merging CFs

Hi,

Quick question regarding Custom Fields. We are using RT 3.8.0 and I’m trying
the following:

  1. Ticket #1 with a test CF with a value of “test1”
  2. Ticket #2 with a test CF with a value of “test2”
  3. Merging #2 into #1

What I’d like to end up with is to have the test CF showing both values
(test1 and test2) when I go to the merged ticket (#1 in that case). But
unfortunately, ticket #1 only show it’s original value of “test1”. The
"test2" value seems to “disappear”.

I’ve tried “Enter multiple values” as a CF type but it doesn’t seems to do
it. Is there a way to do that?

Thanks in advanced,

Jean-Philippe

Hi,

Quick question regarding Custom Fields. We are using RT 3.8.0 and I’m trying
the following:

  1. Ticket #1 with a test CF with a value of “test1”
  2. Ticket #2 with a test CF with a value of “test2”
  3. Merging #2 into #1

What I’d like to end up with is to have the test CF showing both values
(test1 and test2) when I go to the merged ticket (#1 in that case). But
unfortunately, ticket #1 only show it’s original value of “test1”. The
“test2” value seems to “disappear”.

I’ve tried “Enter multiple values” as a CF type but it doesn’t seems to do
it. Is there a way to do that?

that’s how RT works actually, it does not merge customfields on ticket
merge.

you have to modify RT code for this (see method MergeInto in
lib/RT/Ticket_Overlay.pm).

(may be done by a scrip on transaction of type Link with field
MergedInto)

Hi Emmanuel,

Thanks for your reply. If it can be done through scrip, would it be possible
to give me a short example that I can start with.

Thanks,

Jean-PhilippeOn 10-11-10 10:53 AM, “Emmanuel Lacour” elacour@easter-eggs.com wrote:

On Wed, Nov 10, 2010 at 09:39:07AM -0500, Jean-Philippe Houde wrote:

Hi,

Quick question regarding Custom Fields. We are using RT 3.8.0 and I’m trying
the following:

  1. Ticket #1 with a test CF with a value of “test1”
  2. Ticket #2 with a test CF with a value of “test2”
  3. Merging #2 into #1

What I’d like to end up with is to have the test CF showing both values
(test1 and test2) when I go to the merged ticket (#1 in that case). But
unfortunately, ticket #1 only show it’s original value of “test1”. The
“test2” value seems to “disappear”.

I’ve tried “Enter multiple values” as a CF type but it doesn’t seems to do
it. Is there a way to do that?

that’s how RT works actually, it does not merge customfields on ticket
merge.

you have to modify RT code for this (see method MergeInto in
lib/RT/Ticket_Overlay.pm).

(may be done by a scrip on transaction of type Link with field
MergedInto)

I finally was able to do it using the information on this wiki page

http://wiki.bestpractical.com/view/OnMergeOn 10-11-10 11:59 AM, “Jean-Philippe Houde” jphml@videotron.ca wrote:

Hi Emmanuel,

Thanks for your reply. If it can be done through scrip, would it be possible
to give me a short example that I can start with.

Thanks,

Jean-Philippe

On 10-11-10 10:53 AM, “Emmanuel Lacour” elacour@easter-eggs.com wrote:

On Wed, Nov 10, 2010 at 09:39:07AM -0500, Jean-Philippe Houde wrote:

Hi,

Quick question regarding Custom Fields. We are using RT 3.8.0 and I’m trying
the following:

  1. Ticket #1 with a test CF with a value of “test1”
  2. Ticket #2 with a test CF with a value of “test2”
  3. Merging #2 into #1

What I’d like to end up with is to have the test CF showing both values
(test1 and test2) when I go to the merged ticket (#1 in that case). But
unfortunately, ticket #1 only show it’s original value of “test1”. The
“test2” value seems to “disappear”.

I’ve tried “Enter multiple values” as a CF type but it doesn’t seems to do
it. Is there a way to do that?

that’s how RT works actually, it does not merge customfields on ticket
merge.

you have to modify RT code for this (see method MergeInto in
lib/RT/Ticket_Overlay.pm).

(may be done by a scrip on transaction of type Link with field
MergedInto)