Yeah, I was able to create a basic ticket with the rt command, but nothing
with custom fields. Even if I have a queue with a defined custom field, any
method I’ve tried to submit the value of that custom field seems to trigger
an error (I show ‘edit’ below, but ‘create’ is the same).
Looking at the RT command help:
rt help edit
…
“set” sets the named field to the given value
…
-S var=val
Submits the specified variable with the request.
…
So I try:
rt edit ticket/33 set custom_field=value
rt: edit: No variables to set
or…
rt edit ticket/33 -S custom_field=value
rt: edit: Invalid variable specification: ‘custom_field=value’.
So it doesn’t look like the rt CLI is even aware of custom fields. Can
someone confirm this for me? If so, are there plans to add that
functionality?
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.eduFrom: Stephane Bortzmeyer [mailto:bortzmeyer@nic.fr]
Sent: Wednesday, April 27, 2005 02:59
To: Roland, Ryan M
Subject: Re: Inserting Jobs with PHP
a message of 152 lines which said:
If anyone can show me how to use the rt command to create a ticket
and more explicitly set custom fields,
I assume that you know “rt create -t ticket subject=‘new ticket’
priority=10”. Otherwise, I do not know about custom fields and I do
not use them so I cannot help.
smime.p7s (2.96 KB)