Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-13 Thread Kevin Falcone
On Fri, Jul 13, 2012 at 09:59:49PM +0100, Tim Cutts wrote: > >> > >> but querying the database directly is not generally considered a smart > >> thing to do, although I doubt this part of the schema is going to change > >> any time soon. > > > > This is a list of people who are currently Owners

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-13 Thread Tim Cutts
On 13 Jul 2012, at 15:51, Kevin Falcone wrote: > You really don't want to go about it that way. > You want to ask the Queue for the valid statuses, which is why I > pointed to the perldoc for Queue.pm. > A Queue object can get you both global and queue specific sets of > statuses, and it can also

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-13 Thread Richard McMahon
rs->Next ) { print $Users->Name, "\n"; } Thanks for the pointer On Thu, 12 Jul 2012, Kevin Falcone wrote: > Date: Thu, 12 Jul 2012 21:36:55 -0400 > From: Kevin Falcone > Reply-To: rt-users@lists.bestpractical.com > To: rt-users@lists.bestpractical.com > Subje

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-13 Thread Richard McMahon
a ticket? thanks On Fri, 13 Jul 2012, Tim Cutts wrote: Date: Fri, 13 Jul 2012 10:01:33 +0100 From: Tim Cutts To: Richard McMahon Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Perl API: list of available queues, owners, status On 13 Jul 2012, at 01:01, Richard McMahon wrote: OK

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-13 Thread Kevin Falcone
On Fri, Jul 13, 2012 at 10:01:33AM +0100, Tim Cutts wrote: > > On 13 Jul 2012, at 01:01, Richard McMahon wrote: > > > OK, that gets me the queue list. > > > > Is there an API way to get the full list of valid status values > > That's part of the configuration; it's not an API as such. That inf

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-13 Thread Tim Cutts
On 13 Jul 2012, at 01:01, Richard McMahon wrote: > OK, that gets me the queue list. > > Is there an API way to get the full list of valid status values That's part of the configuration; it's not an API as such. That information is all configurable by you in the %Lifecycle configuration (look

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Kevin Falcone
se the API. > > I have looked at QueueSummaryByStatus in RT4 but > > > thanks > > > On Thu, 12 Jul 2012, Kevin Falcone wrote: > > >Date: Thu, 12 Jul 2012 15:00:00 -0400 > >From: Kevin Falcone > >Reply-To: rt-users@lists.bestpractical.com > &

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Richard McMahon
@lists.bestpractical.com Subject: Re: [rt-users] Perl API: list of available queues, owners, status On Thu, Jul 12, 2012 at 07:43:16PM +0100, Richard McMahon wrote: I am doing some ASCII perl reports and one of the options is to supply the queue name. I want to be able to get a list of the queues that are

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Kevin Falcone
gt;Load the queue by name and see if it exists, rather than list 20 queues and name compare each. -kevin > > On Thu, 12 Jul 2012, Ruslan Zakirov wrote: > > >Date: Thu, 12 Jul 2012 21:30:15 +0300 > >From: Ruslan Zakirov > >To: Richard McMahon > >Cc: rt-users

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Ruslan Zakirov
t;new( RT->SystemUser ); $queues->UnLimit; while ( my $queue = $queues->Next ) { print $queue->Name, "\n"; } > > r. > > > On Thu, 12 Jul 2012, Ruslan Zakirov wrote: > >> Date: Thu, 12 Jul 2012 21:30:15 +0300 >> From: Ruslan Zakirov >> To: Ric

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Richard McMahon
: Richard McMahon Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Perl API: list of available queues, owners, status On Thu, Jul 12, 2012 at 7:58 PM, Richard McMahon wrote: Hello, Is there a way/example of how to get a list of queues, owners, status using the Perl API? I want to cycle

Re: [rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Ruslan Zakirov
On Thu, Jul 12, 2012 at 7:58 PM, Richard McMahon wrote: > Hello, > > Is there a way/example of how to get a list of queues, owners, status using > the Perl API? > > I want to cycle through making a list counts for each owner > and queue by status. You want count tickets groupped by queue, owner a

[rt-users] Perl API: list of available queues, owners, status

2012-07-12 Thread Richard McMahon
Hello, Is there a way/example of how to get a list of queues, owners, status using the Perl API? I want to cycle through making a list counts for each owner and queue by status. Thanks Richard --- Dr. Richard G. McMahon|

Re: [rt-users] Perl API: Referring to possible values in combobox custom field by ID?

2011-10-19 Thread Ruslan Zakirov
Hello, Sorry about empty mail. On Wed, Oct 19, 2011 at 12:54 PM, tobiasbp wrote: > Hello list. > > I'm working on a script using the perl API. I'm running RT 3.8.8. > > I have a custom field of type combobox. Let's say the field has two > possible values: > 1: A > 2: B > > I can easily check if

Re: [rt-users] Perl API: Referring to possible values in combobox custom field by ID?

2011-10-19 Thread Ruslan Zakirov
On Wed, Oct 19, 2011 at 12:54 PM, tobiasbp wrote: > Hello list. > > I'm working on a script using the perl API. I'm running RT 3.8.8. > > I have a custom field of type combobox. Let's say the field has two > possible values: > 1: A > 2: B > > I can easily check if the field has a value of "A" or "

[rt-users] Perl API: Referring to possible values in combobox custom field by ID?

2011-10-19 Thread tobiasbp
Hello list. I'm working on a script using the perl API. I'm running RT 3.8.8. I have a custom field of type combobox. Let's say the field has two possible values: 1: A 2: B I can easily check if the field has a value of "A" or "B". But, I would like to refer to the values by ID (1 = A, 2 = B). A

Re: [rt-users] Perl API Help for group rights and queue rights

2007-03-09 Thread Stephen Turner
At Friday 3/9/2007 08:37 AM, Krieg, Alexander wrote: Hi everybody, sorry i think in my last email i didn't see clearly the through the right management. What i mean is, how to give inside the Queue 'testqueue' the Group 'testgroup' a queueright e.g. 'SeeQueue' or 'showTicket' Alexander,

Re: [rt-users] Perl API Help for group rights and queue rights

2007-03-09 Thread Krieg, Alexander
Hi everybody, sorry i think in my last email i didn't see clearly the through the right management. What i mean is, how to give inside the Queue 'testqueue' the Group 'testgroup' a queueright e.g. 'SeeQueue' or 'showTicket' Best regards Alexander Krieg Hi everybody, i already realised to

[rt-users] Perl API Help for group rights and queue rights

2007-03-08 Thread Krieg, Alexander
Hi everybody, i already realised to create create queues and groups via the API, that works all fine. Where i hang at the moment is the right management. I guess i can set rights for groups over something like my $group = RT::Group->new($RT::SystemUser); $group->LoadUserDefinedGroup('my grou

Re: [rt-users] Perl API

2007-02-05 Thread John Arends
Thanks for the help. The following lets me create a ticket: $body = MIME::Entity->new(); $body->build( Type => 'text/plain', Data => 'Test'); my $TicketObj = new RT::Ticket( $RT::SystemUser ); $TicketObj->Create( Queue => 'General', Subject => 'Test Ticket2',

Re: [rt-users] Perl API

2007-02-05 Thread Stephen Turner
At Monday 2/5/2007 11:58 AM, John Arends wrote: I'm still trying to wrap my head around the Perl API. I can create a ticket using the following code: my $TicketObj = new RT::Ticket( $RT::SystemUser ); $TicketObj->Create( Queue => 'General', Subject => 'Test Ticket',

[rt-users] Perl API

2007-02-05 Thread John Arends
I'm still trying to wrap my head around the Perl API. I can create a ticket using the following code: my $TicketObj = new RT::Ticket( $RT::SystemUser ); $TicketObj->Create( Queue => 'General', Subject => 'Test Ticket', Requestor => $Requestor );

Re: [rt-users] Perl API Help

2007-01-29 Thread Ruslan Zakirov
Added examples to http://wiki.bestpractical.com/?CodeSnippets On 1/29/07, Garry T. Williams <[EMAIL PROTECTED]> wrote: [snip] -- Best regards, Ruslan. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.be

Re: [rt-users] Perl API Help

2007-01-29 Thread Garry T. Williams
On Monday 29 January 2007 10:59, John Arends wrote: > I have the book right next to me. (It is a very good book, and buying it > was the least I could do to support this project.) > > The problem is the book just touches on the subject. As someone who is > trying to learn perl I can't pick up en

Re: [rt-users] Perl API Help

2007-01-29 Thread Mathew
I've been looking at that myself. However some things just aren't clear. For example: I need to create a script that pulls from the database for each user the time spent on each customer (stored in a CF). So this requires me to pull the user, the customer, all ticket transactions associated wit

Re: [rt-users] Perl API Help

2007-01-29 Thread Roy El-Hames
Matt; I found the best resource is in /opt/rt3/lib/RT/ Find the appropriate module (Users_ , Tickets_ blah ) copy and hack away .. Roy Mathew wrote: While the book has done me wonders in learning to use and configure RT, it has done little for me in the realm of the codebase. I'm hoping the tra

Re: [rt-users] Perl API Help

2007-01-29 Thread John Arends
I have the book right next to me. (It is a very good book, and buying it was the least I could do to support this project.) The problem is the book just touches on the subject. As someone who is trying to learn perl I can't pick up enough to figure out what to do from the chapter on the perl A

Re: [rt-users] Perl API Help

2007-01-29 Thread Mathew
While the book has done me wonders in learning to use and configure RT, it has done little for me in the realm of the codebase. I'm hoping the training in Boston helps in this regard :) Mathew Jesse Vincent wrote: > > > On Mon, Jan 29, 2007 at 09:41:08AM -0600, John Arends wrote: >> I'm somewh

Re: [rt-users] Perl API Help

2007-01-29 Thread Jesse Vincent
On Mon, Jan 29, 2007 at 09:41:08AM -0600, John Arends wrote: > I'm somewhat new to perl, but I'm starting to pick up a bit of it. There > are a bunch of custom tasks I want to do to integrate RT with some other > systems. I have been looking for some documentation, but what I saw in > the RT

Re: [rt-users] Perl API Help

2007-01-29 Thread Mathew
I've been trying to get the same help. However, there is limited documentation on the codebase. I've asked questions here but I often get cryptic answers that leave me not know what even I'm talking about. Mathew John Arends wrote: > I'm somewhat new to perl, but I'm starting to pick up a bit o

[rt-users] Perl API Help

2007-01-29 Thread John Arends
I'm somewhat new to perl, but I'm starting to pick up a bit of it. There are a bunch of custom tasks I want to do to integrate RT with some other systems. I have been looking for some documentation, but what I saw in the RT wiki was very limited for someone in my position. Can anyone point me