Set Comment on CLI Create?

Hello,

i read in the past, that there is no way to get an Comment to a ticket,
that i create ?

I’ve try:
opt/rt3/bin/rt create -t ticket set status=new Queue=Operating
owner=nobody requestors=nagios Comment=‘This is the Comment’ subject=‘Test
Subject 2’

Geschäftsführer: Rolf Herzog, Thomas Benk
AGES Maut System GmbH & Co. KG
AG Düsseldorf HRA 14045, USt-IdNr.: DE 202525868
AGES International GmbH & Co. KG
AG Düsseldorf HRA 16636, USt-IdNr.: DE 813749831
AGES ETS GmbH
AG Düsseldorf HRB 55580, USt-IdNr.: DE 814789134

I believe the reason is that when you use “set”, you are setting values
to fields in the ticket. A comment is not a field in the ticket so much
as it is an object of a specific type that is attached to a ticket.

If you want to create a ticket and then comment on it, you’ll need to
capture the output from the “rt create” command and get the new ticket
id from it, then use that for a separate “rt comment” command.

SethOn 09/16/2010 09:10 AM, Ingo.Itter@ages.de wrote:

Hello,

i read in the past, that there is no way to get an Comment to a ticket,
that i create ?

I’ve try:
opt/rt3/bin/rt create -t ticket set status=new Queue=Operating
owner=nobody requestors=nagios Comment='This is the Comment’
subject=‘Test Subject 2’


Geschäftsführer: Rolf Herzog, Thomas Benk
AGES Maut System GmbH & Co. KG
AG Düsseldorf HRA 14045, USt-IdNr.: DE 202525868
AGES International GmbH & Co. KG
AG Düsseldorf HRA 16636, USt-IdNr.: DE 813749831
AGES ETS GmbH
AG Düsseldorf HRB 55580, USt-IdNr.: DE 814789134

RT Training in Washington DC, USA on Oct 25& 26 2010
Last one this year – Learn how to get the most out of RT!

Seth Galitzer
Systems Coordinator
Computing and Information Sciences
Kansas State University
http://www.cis.ksu.edu/~sgsax
sgsax@ksu.edu
785-532-7790