[rt-devel] Making CLI display newly created tickets ids
Przemyslaw Jaroszewski
przemek at cert.pl
Wed Oct 1 08:41:16 EDT 2003
Hi,
I thought it might be useful if the cli displayed the ID of the ticket it creates. It might be then used eg. to correspond on a ticket from the script. Unfortunately, sometimes the CLI just displays:
# Ticket new updated
The fault is actually on server's side and can be fixed by changing the following line in REST/1.0/Forms/ticket/default:
push(@comments, "# Ticket $id updated.") unless @comments;
into
push(@comments, "# Ticket ".$ticket->Id." updated.") unless @comments;
Hope this helps.
Przemek
More information about the Rt-devel
mailing list