[rt-users] Creation of tickets from CLI

Ben Robson benr at tlcdatasecurity.com.au
Wed May 28 01:01:47 EDT 2008


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/20080528/1d9ee842/attachment.htm>


More information about the rt-users mailing list