Follow-up over merged Ticket

Moderator: crythias

Post Reply
hrobayo
Znuny newbie
Posts: 8
Joined: 04 Feb 2019, 21:48
Znuny Version: 6.0.16
Real Name: Hugo Camilo Robayo Ayala
Company: Aduana

Follow-up over merged Ticket

Post by hrobayo »

Good morning,

When a Subject follow-up is triggered over a merged ticket its return a TicketID from merged ticket not from linked ticket, it is a bug?.

I check over the configuration I cant't find how to change this, if I change de Subject.pm follow-up to return de TicketID of a linked ticked instead of a merged ticket it will cause a failure in other aspect of OTRS 6.x?
hrobayo
Znuny newbie
Posts: 8
Joined: 04 Feb 2019, 21:48
Znuny Version: 6.0.16
Real Name: Hugo Camilo Robayo Ayala
Company: Aduana

Re: Follow-up over merged Ticket

Post by hrobayo »

I get the trace over the error, in this part of the code in Ticket.pm function TicketCheckNumber

This line do not the job (in otrs-6.0.16-01.noarch version)

if ( $Data->{Name} =~ /^.*%%\d+?%%(\d+?)$/ ) {

With this data

%%2019-036839%%679860%%2019-027992%%671012

It fails..
hrobayo
Znuny newbie
Posts: 8
Joined: 04 Feb 2019, 21:48
Znuny Version: 6.0.16
Real Name: Hugo Camilo Robayo Ayala
Company: Aduana

Re: Follow-up over merged Ticket

Post by hrobayo »

The error is because we create another Ticket Number Format YEAR-COUNTER, now with this change at Tickte.pm TicketCheckNumber function it works fine...

if ( $Data->{Name} =~ /^.*%%\d{4,10}-\d{1,40}%%(\d+?)$/ ) {
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Follow-up over merged Ticket

Post by jojo »

if you fiddle around with the code, this was to be expected...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply