[rt-users] Ticket split

Todd Chapman todd at chaka.net
Mon Nov 14 18:20:10 EST 2005


On Mon, Nov 14, 2005 at 03:33:14PM -0700, Nathan Oyler wrote:
> > > Hi all.
> > >
> > > How can i split ticket to multiple tickets? Something like "Extract
> to
> > > article" in RTFM, but split to any amount of tickets with
> automatical
> > > links to parent ticket, different Owners and so on. Is it possible
> in
> > > theory?
> > >
> > 
> > I have modified one of the elements of Display.html to include
> > a button in the Links section so that child tickets are created
> > for a parent ticket, with the same subject and same body text
> > from the first transaction. Is that what you want?
> > 
> > -Todd
> 
> I would like that.

This should work but I took out some site specific stuff. Be sure
to test it. It also propogates the requestor.

# mkdir -p /op/rt3/local/html/Callbacks/YourCompanyName/Elements/ShowLinks/
# vi /op/rt3/local/html/Callbacks/YourCompanyName/Elements/ShowLinks/Default

--- Content of Default ---
<tr>
<td>
</td>
<td>
<FORM ACTION="<% $RT::WebPath%>/Ticket/Create.html" TARGET="_blank" NAME="child" method="post">
<input type="hidden" name="new-MemberOf" value="<%$Ticket->Id%>">
<input type="hidden" name="Requestors" value="<%$Ticket->RequestorAddresses%>">
%if ($Ticket->Transactions->Count && $Ticket->Transactions->First && $Ticket->Transactions->First->Attachments && $Ticket->Transactions->First->Attachments->Count) {
%my $content = $Ticket->Transactions->First->Content;
<input type="hidden" name="Content" value="<%$content%>">
%}
<&|/l, $m->scomp('/Elements/SelectNewTicketQueue' )&><input type="submit" value="New child in"> [_1]</&>
</FORM>
</td>
</tr>
<%ARGS>
$Ticket
</%ARGS>




More information about the rt-users mailing list