@extract_id(Ticket)<EOL><INDENT>def merge(self, target, source,<EOL>target_comment=None, source_comment=None):<DEDENT>
return TicketMergeRequest(self).post(target, source,<EOL>target_comment=target_comment,<EOL>source_comment=source_comment)<EOL>
Merge the ticket(s) or ticket ID(s) in source into the target ticket.

:param target: ticket id or object to merge tickets into
:param source: ticket id, object or list of tickets or ids to merge into target
:param source_comment: optional comment for the source ticket(s)
:param target_comment: optional comment for the target ticket

:return: a JobStatus object