Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

updating ticket's created field

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


fm100terra at mail

Jun 26, 2012, 1:32 PM

Post #1 of 7 (556 views)
Permalink
updating ticket's created field

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! 


kevinr at bestpractical

Jun 26, 2012, 2:34 PM

Post #2 of 7 (511 views)
Permalink
Re: updating ticket's created field [In reply to]

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


fm100terra at mail

Jun 26, 2012, 3:09 PM

Post #3 of 7 (511 views)
Permalink
Re: updating ticket's created field [In reply to]

Some progress....I 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 <fm100terra [at] mail>:



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! 


fm100terra at mail

Jun 26, 2012, 3:11 PM

Post #4 of 7 (514 views)
Permalink
Re: updating ticket's created field [In reply to]

Some progress....I 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 <kevinr [at] bestpractical>:



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


ruz at bestpractical

Jun 27, 2012, 2:19 PM

Post #5 of 7 (491 views)
Permalink
Re: updating ticket's created field [In reply to]

Hi,

RT::Date->ISO in UTC TZ.

On Wed, Jun 27, 2012 at 1:11 AM, Alexander Sagratyan <fm100terra [at] mail> wrote:
> Some progress....I 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 <kevinr [at] bestpractical>:
>
> 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.


fm100terra at mail

Jun 27, 2012, 11:07 PM

Post #6 of 7 (489 views)
Permalink
Re: updating ticket's created field [In reply to]

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 <ruz [at] bestpractical>:



Hi,

RT::Date->ISO in UTC TZ.

On Wed, Jun 27, 2012 at 1:11 AM, Alexander Sagratyan <fm100terra [at] mail> wrote:
> Some progress....I 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 <kevinr [at] bestpractical>:
>
> 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.


ruz at bestpractical

Jun 28, 2012, 11:16 AM

Post #7 of 7 (484 views)
Permalink
Re: updating ticket's created field [In reply to]

On Thu, Jun 28, 2012 at 9:07 AM, Alexander Sagratyan <fm100terra [at] mail> wrote:
> 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.

Internally it stores Unix time. In DB it's ISO in UTC zone.


> Thu, 28 Jun 2012 00:19:41 +0300 от Ruslan Zakirov <ruz [at] bestpractical>:
>
> Hi,
>
> RT::Date->ISO in UTC TZ.
>
> On Wed, Jun 27, 2012 at 1:11 AM, Alexander Sagratyan <fm100terra [at] mail>
> wrote:
>> Some progress....I 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
>> <kevinr [at] bestpractical>:
>>
>> 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.
>
>



--
Best regards, Ruslan.

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.