Create ticket using a URL + parameters

I’m trying to create a ticket (using a browser as a proof of concept);
I’ve had a look at http://requesttracker.wikia.com/wiki/REST and the
‘Ticket Create’ section but I’m getting nowhere, i.e., I don’t seem to
be forming my “variable named ‘content’, containing ‘key: value’”
correctly.

If anyone has an example of what such a well-formed URL would look
like in a browser
I would be very grateful.

Peter

I’m trying to create a ticket (using a browser as a proof of concept);
I’ve had a look at http://requesttracker.wikia.com/wiki/REST and the
‘Ticket Create’ section but I’m getting nowhere, i.e., I don’t seem to
be forming my “variable named ‘content’, containing ‘key: value’”
correctly.

If anyone has an example of what such a well-formed URL would look
like in a browser
I would be very grateful.

Try running

/opt/rt4/bin/rt help create

and then using the environment variable

RTDEBUG=3

and looking at the form it sends over the wire.

-kevin

Kevin Falcone wrote:> On Fri, Oct 14, 2011 at 10:33:09AM +0100, Peet Morris wrote:

I’m trying to create a ticket (using a browser as a proof of concept);
I’ve had a look at http://requesttracker.wikia.com/wiki/REST and the
‘Ticket Create’ section but I’m getting nowhere, i.e., I don’t seem to
be forming my “variable named ‘content’, containing ‘key: value’”
correctly.

If anyone has an example of what such a well-formed URL would look
like in a browser
I would be very grateful.

Try running

/opt/rt4/bin/rt help create

and then using the environment variable

RTDEBUG=3

and looking at the form it sends over the wire.

-kevin

Thanks for the reply Kevin, but I’m afraid I can’t tackle it this way.

/opt/rt4/bin/rt help create is a path (?), but I don’t have rt installed
or access to the install machine, so I’m simply trying to figure this
out using a plain url and its accompanying parameters.

Peter

Kevin Falcone wrote:

I’m trying to create a ticket (using a browser as a proof of concept);
I’ve had a look at http://requesttracker.wikia.com/wiki/REST and the
‘Ticket Create’ section but I’m getting nowhere, i.e., I don’t seem to
be forming my “variable named ‘content’, containing ‘key: value’”
correctly.

If anyone has an example of what such a well-formed URL would look
like in a browser
I would be very grateful.

Try running

/opt/rt4/bin/rt help create

and then using the environment variable

RTDEBUG=3

and looking at the form it sends over the wire.

-kevin

Thanks for the reply Kevin, but I’m afraid I can’t tackle it this way.

/opt/rt4/bin/rt help create is a path (?), but I don’t have rt
installed or access to the install machine, so I’m simply trying to
figure this out using a plain url and its accompanying parameters.

Download the RT tarball, bin/rt is a small perl program with few
dependencies.

You will waste a lot less time if you install it and use it to look at
what you should be sending.

-kevin