Creation of tickets from CLI

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

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

[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Ben
RobsonSent: Wednesday, 28 May 2008 3:02 PM
To: rt-users@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