Making CLI display newly created tickets ids

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

Thanks for the bug report and fix. I’ve fowarded it to rt-bugs@fsck.com
for later inclusion into RT. In the future, please don’t CC both
rt-users and rt-devel. The cross-talk can occasionally get to be too
much. Just sending to rt-devel and BCCing rt-bugs ought to do it.

But anyway, thanks!

JesseOn Wed, Oct 01, 2003 at 02:41:16PM +0200, Przemyslaw Jaroszewski wrote:

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


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

http://www.bestpractical.com/rt – Trouble Ticketing. Free.