Yep .. I tried that and works great but what if I wanted to be able to make tickets from the command line as multiple users, for example, client users... Creating unix shells for them would be a good solution but I found one.... Sendmail! Or more like it.. SendEmail, a command line tool that lets you do a to and from .... So that way I can inject an email like this:
SendEmail -t [email protected] -f [email protected] That way I can inject and email as if I were userX sending it... And RT creates a ticket as if userX sent it from his email address. Works like a charm! > From: Alexander Nikolaev <[email protected]> > Date: Tue, 04 Aug 2009 09:40:26 +0400 > To: Anton Krall <[email protected]> > Cc: "[email protected]" <[email protected]> > Subject: Re: [rt-users] Rt from command line > > Therefor i suppose u work with unix-like os installed on your web-server. > Are you logged in as root (i mean logged in your server)? > First of all, don't work as root %)! > > Users in RT have such a field - unix name (stored in database as gecos). > > You are logged in as root and rt user root has unix login set to root - > thats why you create tickets as root. > > Create a new unix login, for example, akrall, go to web interface, set > unix login of your account to akrall, then log in as akrall and try to > create a ticket from command-line interface. > > That works with rt-crontool, so, i suppose, will do for your case. > Sorry for poor english, hope its understandable :) > > Anton Krall writes: >> Nobody? >> >> >>> From: Anton Krall <[email protected]> >>> Date: Mon, 03 Aug 2009 10:02:40 -0500 >>> To: "[email protected]" <[email protected]> >>> Subject: [rt-users] Rt from command line >>> >>> Guys.. Im trying to use rt form the command line to create tickets. So far I >>> added the rtrc file and I can log into RT without problems... I can run >>> commands, everything looks great... But now.. Im trying to run this: >>> >>> rt create -t ticket set subject='New ticket' priority=9 queue='Soporte >>> Tecnico' [email protected] >>> >>> But the problems is here: the ticket is created but as if user root created >>> it, then HE gets the autoreply email and after that, RT says (in the history >>> page of the ticket) that root was deleted from the ticket and it was changed >>> to requester [email protected] >>> >>> This is great except for one thing... The autoreply email was sent to user >>> root and not [email protected] since he got added AFTER autoreply was sent. >>> >>> Any way to create thet ticket as [email protected] from the start? >>> >>> _______________________________________________ >>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users >>> >>> Community help: http://wiki.bestpractical.com >>> Commercial support: [email protected] >>> >>> >>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. >>> Buy a copy at http://rtbook.bestpractical.com >> >> _______________________________________________ >> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users >> >> Community help: http://wiki.bestpractical.com >> Commercial support: [email protected] >> >> >> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. >> Buy a copy at http://rtbook.bestpractical.com > > -- > Regards, Alex Nikolaev > Open Technologies, Russia. _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
