Jump to content


Link ticket with ticket

link

2 replies to this topic

#1 cvgro

    Member

  • Members
  • PipPip
  • 15 posts

Posted 15 April 2015 - 05:40 AM

Hello,

Is there a reason behind this condition for linking tickets?

	    else if($type == "LinkTicket")
	    {
		    $Ticket = new Ticket($_POST[POST_INTERN_PROCESS_TICKET_ACTIONS . "_" . $count . "_vd_0"],"");
		    $TicketSub = new Ticket($_POST[POST_INTERN_PROCESS_TICKET_ACTIONS . "_" . $count . "_vd_1"],"");
		    $counts[$Ticket->Id]=Ticket::GetMessageCount($Ticket->Id);
		    $counts[$TicketSub->Id]=Ticket::GetMessageCount($TicketSub->Id);
		    if($counts[$Ticket->Id] > $counts[$TicketSub->Id])
			    $Ticket->LinkTicket($TicketSub->Id, getId(32));
		    else
			    $TicketSub->LinkTicket($Ticket->Id, getId(32));
		    $Ticket->SetLastUpdate(time());
	    }

Is there any problem if I remove the condition and let the operator to decide which will be the container, not the number of messages?

Any other place to modify the code to reflect this mod?

Thank you!

#2 Patrick Keil

    Administrator

  • Administrators
  • 3001 posts
  • LocationSingen, Germany

Posted 15 April 2015 - 06:25 AM

Hi cvgro,

Yes, this condition can be changed freely but I don't know how to realize a solution where your operator can choose the host/parent ticket as there's no GUI for that currently.

#3 cvgro

    Member

  • Members
  • PipPip
  • 15 posts

Posted 15 April 2015 - 06:38 AM

But if i am in ticket A window and (excluding the condition) I chose from "Actions" "Link with ticket" and I put B there, the container will be B, correct?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users