[rt-users] REST + user without e-mail address = no requestor

Ruslan Zakirov ruz at bestpractical.com
Thu Mar 29 08:16:19 EDT 2012


Try id instead of name, but I wouldn't be surprised if it doesn't work.

Ruslan from phone.
29.03.2012 13:54 пользователь "Arthur Rance" <arthur_rance at hotmail.com>
написал:

>  Hello,
>
> Is it possible to create a ticket through REST with a user which has no
> e-mail address ?
>
> This doesn't work :
>
> #!/usr/bin/env perl
>
> use strict;
>
> use RT::Client::REST;
>
> my $rt = RT::Client::REST->new( server => 'http://myrtserver' );
> $rt->login(username => 'user', password => 'password' );
>
> $rt->create
> (
>   type => 'ticket',
>   set =>
>   {
>     requestor => 'rt_user', # user with no e-mail address
>     queue => 'test',
>     subject => 'test'
>   },
>   text => '1 2 1 2 this is a test'
> );
>
> # the ticket is created without any requestor...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120329/9f269d00/attachment.htm>


More information about the rt-users mailing list