Re: [rt-users] updating ticket's created field

2012-06-28 Thread Alexander Sagratyan
Thanks Ruslan.

Yes, date format and timezone is ISO UTC. As I've understood RT stores 
datetimes in ISO UTC internally and when displaying - converts correspondingly 
in local configured timezone.


Thu, 28 Jun 2012 00:19:41 +0300 от Ruslan Zakirov r...@bestpractical.com:
 
  
  
Hi,

RT::Date-ISO in UTC TZ.

On Wed, Jun 27, 2012 at 1:11 AM, Alexander Sagratyan fm100te...@mail.ru wrote:
 Some progressI was experimenting with __Set method.  So far it is able
 to alter Created field. But cannot define what datetime format to feed this
 method.


 Tue, 26 Jun 2012 17:34:53 -0400 от Kevin Riggle kev...@bestpractical.com:

 Excerpts from Alexander Sagratyan's message of Tue Jun 26 16:32:53 -0400
 2012:
 Hello.

 I am struggling with the following problem without a success: task is to
 update Created and Started fields of a ticket inside a custom scrip. I have
 found SetStarted method, but not SetCreated. Is it possible to update
 Created field manually inside a scrip?

 Created is set by the RT system when the ticket is created, and can't be
 updated manually.

 - Kevin





-- 
Best regards, Ruslan.



Re: [rt-users] ticket's getheader method

2012-06-28 Thread Alexander Sagratyan
Thanks for a help.

I also used Transactions property. But instead of while loop used Next method. 
Although I\ve expected to see First-lie method. Nevertheless everything works.


Thu, 28 Jun 2012 00:21:20 +0300 от Ruslan Zakirov r...@bestpractical.com:
 
  
  
hi,

my $txns = $Ticket-Transactions;
while ( my $txn = $txns ) {
   
}

On Wed, Jun 27, 2012 at 1:37 AM, Alexander Sagratyan fm100te...@mail.ru wrote:
 Hello. I have some questions abot GetHeader method. Any help is appreciated.

  I have a scrip which retrieves Date header  from ticket :

 my $Transaction = $self-TransactionObj;
 my $date_header = $Transaction-Attachments-First-GetHeader('Date');

 This extraction works perfactly.  Further in the same scrip I have:

 my $ticket = $search-Next     # ticket object is retrieved from queue

 The question is how to get the same Date header from ticket object? Does the
  Transaction/Attachment exist for already created ticket in queue ? Will
 Transactions field be useful in this case?



-- 
Best regards, Ruslan.



[rt-users] updating ticket's created field

2012-06-26 Thread Alexander Sagratyan
Hello.

I am struggling with the following problem without a success: task is to update 
Created and Started fields of a ticket inside a custom scrip. I have found 
SetStarted method, but not SetCreated. Is it possible to update Created field 
manually inside a scrip?

Thanks in advance! 

Re: [rt-users] updating ticket's created field

2012-06-26 Thread Alexander Sagratyan
Some progressI was experimenting with __Set method.  So far it is able to 
alter Created field. But cannot define what datetime format to feed this method.


Wed, 27 Jun 2012 00:32:53 +0400 от Alexander Sagratyan fm100te...@mail.ru:
 
  
  
Hello.

I am struggling with the following problem without a success: task is to update 
Created and Started fields of a ticket inside a custom scrip. I have found 
SetStarted method, but not SetCreated. Is it possible to update Created field 
manually inside a scrip?

Thanks in advance! 


Re: [rt-users] updating ticket's created field

2012-06-26 Thread Alexander Sagratyan
Some progressI was experimenting with __Set method.  So far it is able to 
alter Created field. But cannot define what datetime format to feed this method.


Tue, 26 Jun 2012 17:34:53 -0400 от Kevin Riggle kev...@bestpractical.com:
 
  
  
Excerpts from Alexander Sagratyan's message of Tue Jun 26 16:32:53 -0400 2012:
 Hello.
 
 I am struggling with the following problem without a success: task is to 
 update Created and Started fields of a ticket inside a custom scrip. I have 
 found SetStarted method, but not SetCreated. Is it possible to update Created 
 field manually inside a scrip?

Created is set by the RT system when the ticket is created, and can't be
updated manually.

- Kevin



[rt-users] ticket's getheader method

2012-06-26 Thread Alexander Sagratyan
Hello. I have some questions abot GetHeader method. Any help is appreciated.

 I have a scrip which retrieves Date header  from ticket :

my $Transaction = $self-TransactionObj;
my $date_header = $Transaction-Attachments-First-GetHeader('Date');

This extraction works perfactly.  Further in the same scrip I have:

my $ticket = $search-Next     # ticket object is retrieved from queue
 
The question is how to get the same Date header from ticket object? Does the  
Transaction/Attachment exist for already created ticket in queue ? Will 
Transactions field be useful in this case?

Re: [rt-users] queue query string and statistics

2012-01-24 Thread Alexander Sagratyan
I was building search string in Query Builder. And you were right somehow it 
was stored in my current session.

Thanks!


23 января 2012, 21:38 от Kevin Falcone falc...@bestpractical.com:
 On Mon, Jan 23, 2012 at 05:16:25PM +0400, Alexander Sagratyan wrote:
  
 1)  I am not able to change a query string of the General queue. Whenever
 I am adding a new
 search criteria such as resolved and deleted ticket status, after
 updating everything works,
 resolved and deleted tickets are displayed, but the problem begins when I
 am returning to the
 home page of RT - query string is not saved. What can be the solution to
 this problem?
 
 You need to save the search that you have modified and then add it to
 your homepage.  If the search is already on your homepage, then you
 need to save it so that your homepage updates.  You can build one-off
 searches in RT that aren't stored anywhere except in your current
 session, and it sounds like that's what you're doing.
 
 It may help to send a better list of the steps you took, such as the
 URL you clicked on to start this and URLs along the way, otherwise it
 isn't clear what part of the UI you're trying to use.
 
 -kevin
 
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston � March 5  6, 2012

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

[rt-users] queue query string and statistics

2012-01-23 Thread Alexander Sagratyan
Hello.
 I have two questions concerning queues:

1)  I am not able to change a query string of the General queue. Whenever I am 
adding a new search criteria such as resolved and deleted ticket status, after 
updating everything works, resolved and deleted tickets are displayed, but the 
problem begins when I am returning to the home page of RT - query string is not 
saved. What can be the solution to this problem? 

2) Is there  some perl module which collects and displays the ticket statistics 
in addition to the built-in feature of RT (queue search, charts)? 

thanks in advance .
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] queue query string and statistics

2012-01-23 Thread Alexander Sagratyan
Ruslan thanks for a quick reply.
Can you list those extensions? I would like to experiment with them.
The primary requirement is to get full ticket statistics: how many were 
created, resolved, filtering by requestors and so on...generally as I've seen a 
built-in statistics feature of RT is doing its job, but I have a problem with 
query string (see first question). Cannot make it work


23 января 2012, 18:06 от Ruslan Zakirov r...@bestpractical.com:
 On Mon, Jan 23, 2012 at 17:16, Alexander Sagratyan fm100te...@mail.ru wrote:
  2) Is there  some perl module which collects and displays the ticket
  statistics in addition to the built-in feature of RT (queue search,
  charts)?
 
 Statistics is not trivial and very unique for installations. There are
 a few extensions out there, but they may not meet your needs.
 
 --
 Best regards, Ruslan.
 

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] RT scrip

2012-01-04 Thread Alexander Sagratyan
Thanks Kevin! That's exactly what I am looking for.


04 января 2012, 00:41 от Root Kev root@gmail.com:
Yes there is.  Look at the wiki, specifically look for autoclose nagios 
tickets.http://requesttracker.wikia.com/wiki/AutoCloseOnNagiosRecoveryMessages

You should be able to use that as a starting point to get the kind of scrip 
that you are looking for.

Kevin

On Tue, Jan 3, 2012 at 10:14 AM, Alexander Sagratyan fm100te...@mail.ru wrote:
Hello.

 I am trying to configure RT so that when a new ticket is created/corresponded 
a scrip will check all open ticket subject fields. If there is a match  -  
action is to close/resolve both tickets. Is it possible to create such a custom 
scrip? 
Thanks in advance. 

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012



RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012