[rt-users] Creation of tickets from CLI - [Pork] Email found in subject
Ben Robson
benr at tlcdatasecurity.com.au
Wed May 28 11:15:07 EDT 2008
Well I am pleased to report I solved my own problem...
For future reference, when using multiple lines in the text field, as
used in a form submitted for the '-i' rt CLI command, you must make the
first character on the extra lines a space.
Thanks all.
BenR
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Ben
Robson
Sent: Wednesday, 28 May 2008 3:02 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Creation of tickets from CLI - [Pork] Email found in
subject
Greetings all,
I am attempting to use the RT command line tool to create a ticket with
content and fields pre-populated. I am using the '-i' flag to call in a
text file with pre-populated text fields.
I have created a text file that contains the following and I set the
Subject and Requestor from the command line itself:
# Required: id, Queue
id: ticket/new
Queue: Queue Name
Status: new
Priority: 100
InitialPriority: 100
FinalPriority:
TimeEstimated: 0
Text: Some text
This all works great, but if I try and make the "Text:" line have more
than one line, as follows, it errors out with a "Syntax Error" on the
new line. For example:
Textfile contains:
# Required: id, Queue
id: ticket/new
Queue: Queue Name
Status: new
Priority: 100
InitialPriority: 100
FinalPriority:
TimeEstimated: 0
Text: Some text
Some more text
Error thrown will look like:
# Syntax error.
id: ticket/new
Queue: MSS Daily Checklist
Status: new
Priority: 100
InitialPriority: 100
FinalPriority:
TimeEstimated:
Text: Some text
>> Some more text
Anyone have any good ideas how to get extra lines of text in to the text
field?
Thanks,
BenR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080529/ea49c435/attachment.htm>
More information about the rt-users
mailing list