Ticket Merge Notification

Moderator: crythias

Post Reply
SeanLetson
Znuny newbie
Posts: 5
Joined: 08 May 2012, 21:50
Znuny Version: 3.1.4
Real Name: Sean Letson
Company: CACI

Ticket Merge Notification

Post by SeanLetson »

I know OTRS sends an email to the customer when a ticket is merged with both numbers (parent/child) in the email body. My problem is getting it to work inside of a notification to the owner/responsible agent. Using the same notification tag for the parent ticket that the system used in the notification sent to the customer (<OTRS_MERGE_TO_TICKET>) does not work. An email sent by OTRS to the customer looks like this:

Ticket number 2012061101000033 is merged into 2012061101000034.

An email sent to the agent through the notification looks like this:

Ticket number 2012061101000033 is merged into <OTRS_MERGE_TO_TICKET>.

How do I get the notification to display the parent ticket number?
SeanLetson
Znuny newbie
Posts: 5
Joined: 08 May 2012, 21:50
Znuny Version: 3.1.4
Real Name: Sean Letson
Company: CACI

Re: Ticket Merge Notification

Post by SeanLetson »

Well, I've discovered that everything pertaining to ticket merging takes place in the AgentTicketMerge.pm, including the email generated and sent to the customer. The notification I created is triggered by a ticket merge but is located in a different module so the tag <OTRS_MERGE_TO_TICKET> won't work because it has no functionality outside of it's module. So, I'm one step closer but still have no idea how to get my notification to display the parent ticket number along with the one for the child ticket.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ticket Merge Notification

Post by crythias »

not super pretty, but don't overthink it.
By default, the type is note-external
the state is merged
it's an agent article.
the article is:
<OTRS_AGENT_BODY[5]>
LIkely it has the information you seek already printed.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
SeanLetson
Znuny newbie
Posts: 5
Joined: 08 May 2012, 21:50
Znuny Version: 3.1.4
Real Name: Sean Letson
Company: CACI

Re: Ticket Merge Notification

Post by SeanLetson »

Thanks, I was over thinking it. Your suggestion worked after I tweaked the system to look for the merge notification OTRS places in the child ticket as the article to forward in the notification.
Post Reply