[rt-users] Using rt CLI in 3.2.1

Mike Friedman mikef at ack.Berkeley.EDU
Tue Aug 24 16:25:10 EDT 2004


I'm trying to learn how to use the 'rt' CLI in 3.2.1, to see how I must
modify my perl scripts written for 2.0.15.  Most of the CLI seems to be
documented well, but I can't figure out how to add a comment to a ticket.
In particular, I'd like to do the equivalent of the following that I have
in my perl scripts that talk to 2.0.15:

   rt --id=nnnnn --comment --noedit --source 'filename'

where 'filename' is a temporary file I create in my script with content I
want to add to the ticket.

I've been trying 'rt edit', but it seems all it lets me do is add or
change fields like 'Subject', etc.  What I want to do is add actual text
as a new comment in a ticket.

I'd also like to know how to do an interactive edit of the contents of a
ticket, which I do now with 2.0.15 like this:

   rt --id=nnnnn --show

[I'm looking at the CLI because I haven't been able to get enough
information to learn how to use the API.  The documentation is not there
and the source is not a good way to learn the basics about the perl object
interface to RT.  (For example, how to call functions like ticket create,
ticket update, etc.).  So, at least I figure I should be able to continue
using the CLI, once I clarify some things about the way it works in
3.2.1].

Thanks.

Mike

------------------------------------------------------------------------------
Mike Friedman                             System and Network Security
mikef at ack.Berkeley.EDU                    2484 Shattuck Avenue
1-510-642-1410                            University of California at Berkeley
http://ack.Berkeley.EDU/~mikef            http://security.berkeley.edu
------------------------------------------------------------------------------



More information about the rt-users mailing list