I have two tickets: Master and Slave.
How can I set the state of Master ticket to Open when I merge Slave into it?
I tried to use generic agent TicketMerge, but it modify only Slave ticket.
Must I modify TicketMerge procedure in ticket.pm?
Or there is a more standard method?
Thanks
[SOLVED] need to open the master ticket in a merge
Moderator: crythias
-
- Znuny newbie
- Posts: 95
- Joined: 11 Jun 2020, 14:56
- Znuny Version: 6.5.8
- Real Name: Rodolfo Rughi
- Company: none
[SOLVED] need to open the master ticket in a merge
Last edited by rodolfor on 19 Jul 2023, 10:43, edited 1 time in total.
-
- Znuny newbie
- Posts: 95
- Joined: 11 Jun 2020, 14:56
- Znuny Version: 6.5.8
- Real Name: Rodolfo Rughi
- Company: none
Re: need to open the master ticket in a merge
In Ticket.pm I modified the following code adding "ticket_state_id = 4,"
Code: Select all
# Update change time and user ID for main ticket.
# See bug#13092 for more information.
return if !$DBObject->Do(
SQL => 'UPDATE ticket SET change_time = current_timestamp, ticket_state_id = 4, change_by = ? WHERE id = ?',
Bind => [ \$Param{UserID}, \$Param{MainTicketID} ],
);