Inserting Jobs with PHP

Hi People

Has anyone used php to insert tickets in to RT? i have some scripts that
used to just send out emails, but now want to swap them over to inserting
jobs in to RT?

I could rewrite them in perl, but would prefer to keep them as php.

Andrew Xenides
Web Developer
EscapeNet
465 South Road
Keswick SA 5035
T: (08) 8292 5200
F: (08) 8292 5299
E: andrew@staff.esc.net.au
W: http://www.esc.net.au

a message of 130 lines which said:

Has anyone used php to insert tickets in to RT? i have some scripts
that used to just send out emails, but now want to swap them over to
inserting jobs in to RT?

The simplest solution would be to set up rt-mailgate (if it is not
already done) and to ask PHP to send email to RT…

To handle internal requests/submissions we are using multiple plain HTML
forms all of which submit to a single PHP script which based on a few hidden
fields, will send a formatted email to our RT server. Since our RT server
is the same machine that serves our PHP script, we thought it seemed to make
sense to use the RT command-line to create the tickets. However, because of
our heavy use of custom fields (and, what appears to be, limited capability
thereof in the command-line tool), we have had to resort to the PHP script
sending email and then use the RT field scrubber to parse out the custom
fields.

If anyone can show me how to use the rt command to create a ticket and more
explicitly set custom fields, that would be a huge piece in our puzzle.

Thanks,

Ryan Roland

Network and Security Administrator
Information Technology
Division of Recreational Sports
Indiana University

SRSC 115H
1601 Law Lane
Bloomington, IN 47405

812.855.9617
rmroland@indiana.edu-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Andrew
Xenides
Sent: Monday, April 25, 2005 21:30
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Inserting Jobs with PHP

Hi People

Has anyone used php to insert tickets in to RT? i have some scripts that
used to just send out emails, but now want to swap them over to inserting
jobs in to RT?

I could rewrite them in perl, but would prefer to keep them as php.

Andrew Xenides
Web Developer
EscapeNet
465 South Road
Keswick SA 5035
T: (08) 8292 5200
F: (08) 8292 5299
E: andrew@staff.esc.net.au
W: http://www.esc.net.au

smime.p7s (2.96 KB)