All you need to do is call ars_MergeEntry and change the Status field to the
value representing 'Closed'. E.g. you would write:
my $response = ars_MergeEntry(
$ctrl,
$schema,
1028,
1,
$ticket_number,
$status_field_id,
N
);
where N is the numeric value corresponding to "Closed" (BTW, the above assumes
that 1 is the field-id of the "ticket number" field).
Cheers,
Richard.
> Date: Mon, 12 Nov 2007 14:37:34 -0500> From: [EMAIL PROTECTED]> To:
> arsperl-users@arsperl.org> Subject: [Arsperl-users] Function to Close a
> ticket> > Hi: is there a function in ARS Perl that can be used to update the
> > Status to Closed in the help desk?> > Thanks> >
> ------------------------------------------------------------------------->
> This SF.net email is sponsored by: Splunk Inc.> Still grepping through log
> files to find problems? Stop.> Now Search log events and configuration files
> using AJAX and a browser.> Download your FREE copy of Splunk now >>
> http://get.splunk.com/> _______________________________________________>
> Arsperl-users mailing list> Arsperl-users@arsperl.org>
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
_________________________________________________________________
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
http://www.newhotmail.co.uk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users