[rt-users] Steal ticket using REST interface

Kevin Falcone falcone at bestpractical.com
Tue Jul 31 14:26:42 EDT 2012


On Mon, Jul 30, 2012 at 02:37:41PM -0700, James Marcinik wrote:
>    Well, I don't see this on the wiki and Google is not turning anything up, so I am hoping to
>    get some answers here.
>    I have a basic REST client working to get tickets, add comments, etc.  In order to publicly
>    reply to a ticket, I need to steal it first.  I saw in the 3.6.0 release notes from 2006 that
>    this functionality should be available, but the wiki doesn't really say how.
>    Here is what doesn't work so far:
>    Issue a basic request to "/REST/1.0/ticket/[ticketnumber]/steal"
>    Issue request to "/REST/1.0/ticket/[ticketnumber]/steal" and set content variable with "id:
>    [ticketnumber] Action: steal" (yes, each key/value on a seperate line)
>    Issue request to "/REST/1.0/ticket/[ticketnumber]/comment" and set content variable with "id:
>    [ticketnumber] Action: steal"
>    Issue request to "/REST/1.0/ticket/[ticketnumber]/edit" and set content variable with "owner:
>    [username]"
>    I know I am missing some obvious, any help?

The tests steal, t/web/command_line.t and bin/rt help steal has docs.
I suggest running with RTDEBUG=3 bin/rt steal 7 and seeing what it
sends.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120731/0cac3528/attachment.sig>


More information about the rt-users mailing list