Re: [rt-users] Scrip ordering

2011-02-17 Thread Kenneth Crocker
Bernard,

We have some notifications that use templates that display CF info that is
being modified during the transaction. So, if the notification is just
displaying "Ticket" metadata that isn't being modified by any other scrip,
we use TransCreate. Otherwise, we use TransBatch for all other scrips and
name them so that they execute in the desired order.

Hope this helps.

Kenn
LBNL

On Wed, Feb 16, 2011 at 8:04 PM, Bernard McCormack
wrote:

> I tried transaction create with the descriptions set to define the order, I
> tried transaction batch and I tried the read on transaction create  and then
> the displaying of the value in the transaction batch. The value is getting
> set but it appears unset during the execution chain.
>
>
>
> *From:* rt-users-boun...@lists.bestpractical.com [mailto:
> rt-users-boun...@lists.bestpractical.com] *On Behalf Of *Kenneth Crocker
> *Sent:* Wednesday, February 16, 2011 12:18 PM
> *To:* rt-users@lists.bestpractical.com
> *Subject:* Re: [rt-users] Scrip ordering
>
>
>
> Bernard,
>
> Are you using "TransactionBatch"?
>
> Kenn
> LBNL
>
> On Wed, Feb 16, 2011 at 2:49 AM, Bernard McCormack <
> bmccorm...@nextjump.com> wrote:
>
> I am extracting custom values from emails using
> RT-Extension-ExtractCustomFieldValues and I want to use the value in the
> next step to decide the format of the email sent to the users.
>
> The transactions according to the logs are both firing in the correct order
> in Transaction Create
>
> I am accessing the cf using:
>
> $Ticket->FirstCustomFieldValue('Priority')
>
> This works on another transaction but when chained together it doesn’t have
> the value set.
>
> Any help would be appreciated.
>
>
>
>
>
>
>


Re: [rt-users] Scrip ordering

2011-02-16 Thread Ruslan Zakirov
Put extraction into transaction create stage and notification into
batch stage. This should work.

On Thu, Feb 17, 2011 at 7:04 AM, Bernard McCormack
 wrote:
> I tried transaction create with the descriptions set to define the order, I
> tried transaction batch and I tried the read on transaction create  and then
> the displaying of the value in the transaction batch. The value is getting
> set but it appears unset during the execution chain.
>
>
>
> From: rt-users-boun...@lists.bestpractical.com
> [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kenneth
> Crocker
> Sent: Wednesday, February 16, 2011 12:18 PM
> To: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] Scrip ordering
>
>
>
> Bernard,
>
> Are you using "TransactionBatch"?
>
> Kenn
> LBNL
>
> On Wed, Feb 16, 2011 at 2:49 AM, Bernard McCormack 
> wrote:
>
> I am extracting custom values from emails using
> RT-Extension-ExtractCustomFieldValues and I want to use the value in the
> next step to decide the format of the email sent to the users.
>
> The transactions according to the logs are both firing in the correct order
> in Transaction Create
>
> I am accessing the cf using:
>
> $Ticket->FirstCustomFieldValue('Priority')
>
> This works on another transaction but when chained together it doesn’t have
> the value set.
>
> Any help would be appreciated.
>
>
>
>
>
>



-- 
Best regards, Ruslan.


Re: [rt-users] Scrip ordering

2011-02-16 Thread Bernard McCormack
I tried transaction create with the descriptions set to define the
order, I tried transaction batch and I tried the read on transaction
create  and then the displaying of the value in the transaction batch.
The value is getting set but it appears unset during the execution
chain.

 

From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kenneth
Crocker
Sent: Wednesday, February 16, 2011 12:18 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Scrip ordering

 

Bernard,

Are you using "TransactionBatch"?

Kenn
LBNL

On Wed, Feb 16, 2011 at 2:49 AM, Bernard McCormack
 wrote:

I am extracting custom values from emails using
RT-Extension-ExtractCustomFieldValues and I want to use the value in the
next step to decide the format of the email sent to the users.

The transactions according to the logs are both firing in the correct
order in Transaction Create

I am accessing the cf using:

$Ticket->FirstCustomFieldValue('Priority')

This works on another transaction but when chained together it doesn't
have the value set.

Any help would be appreciated.

 

 

 



Re: [rt-users] Scrip ordering

2011-02-16 Thread Ruslan Zakirov
Change condition for autoreply to custom. You need something close to "on
create and all required fields are set or on field change and all other
fields are set."

Regards, Ruslan. From phone.
16.02.2011 13:50 пользователь "Bernard McCormack" 
написал:
> I am extracting custom values from emails using
> RT-Extension-ExtractCustomFieldValues and I want to use the value in the
> next step to decide the format of the email sent to the users.
>
> The transactions according to the logs are both firing in the correct
> order in Transaction Create
>
> I am accessing the cf using:
>
> $Ticket->FirstCustomFieldValue('Priority')
>
> This works on another transaction but when chained together it doesn't
> have the value set.
>
> Any help would be appreciated.
>
>
>
>
>


Re: [rt-users] Scrip ordering

2011-02-16 Thread Kenneth Crocker
Bernard,

Are you using "TransactionBatch"?

Kenn
LBNL

On Wed, Feb 16, 2011 at 2:49 AM, Bernard McCormack
wrote:

> I am extracting custom values from emails using
> RT-Extension-ExtractCustomFieldValues and I want to use the value in the
> next step to decide the format of the email sent to the users.
>
> The transactions according to the logs are both firing in the correct order
> in Transaction Create
>
> I am accessing the cf using:
>
> $Ticket->FirstCustomFieldValue('Priority')
>
> This works on another transaction but when chained together it doesn’t have
> the value set.
>
> Any help would be appreciated.
>
>
>
>
>


[rt-users] Scrip ordering

2011-02-16 Thread Bernard McCormack
I am extracting custom values from emails using
RT-Extension-ExtractCustomFieldValues and I want to use the value in the
next step to decide the format of the email sent to the users.

The transactions according to the logs are both firing in the correct
order in Transaction Create

I am accessing the cf using:

$Ticket->FirstCustomFieldValue('Priority')

This works on another transaction but when chained together it doesn't
have the value set.

Any help would be appreciated.

 

 



Re: [rt-users] Scrip ordering and commmitting

2008-01-28 Thread Stephen Turner
At Monday 1/28/2008 01:56 PM, you wrote:
>On Jan 28, 2008 7:50 PM, Stephen Turner <[EMAIL PROTECTED]> wrote:
> >
> > Can anyone explain why the newly minted AdminCc does not get a 
> notification?
>Notification scrip fetches list of recipients during prepare.

Ah - thanks. I solved my problem by using a single scrip, adding the 
new AdminCc in the condition step.

Thanks,
Steve  

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Scrip ordering and commmitting

2008-01-28 Thread Ruslan Zakirov
On Jan 28, 2008 7:50 PM, Stephen Turner <[EMAIL PROTECTED]> wrote:
> One of our users would like to be added to a ticket as an AdminCc
> (and be notified) whenever a particular requestor sends (new) mail to
> the queue. I thought I could do this by taking advantage of the
> scrip-ordering feature:
>
>00 On Create User Defined (add user as AdminCc if requestor matches a list)
>99 On Create Notify AdminCc ...
>
> The first part works fine - the user is added to the ticket as
> AdminCc. However, the second scrip finds no AdminCcs and sends no
> mail (No recipients found. Not sending). The scrips are definitely
> executing in the expected order - the RT log tells me so.
>
> I thought that for a given transaction, each scrip was committed in
> order - so I expected scrip 99 to see the new AdminCc and send mail.
> But apparently not.
>
> Can anyone explain why the newly minted AdminCc does not get a notification?
Notification scrip fetches list of recipients during prepare.

>
> Thanks,
> Steve
>
>
> Stephen Turner
> Senior Programmer/Analyst - Client Support Services
> MIT Information Services and Technology (IS&T)
>
>
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



-- 
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Scrip ordering and commmitting

2008-01-28 Thread Stephen Turner
One of our users would like to be added to a ticket as an AdminCc 
(and be notified) whenever a particular requestor sends (new) mail to 
the queue. I thought I could do this by taking advantage of the 
scrip-ordering feature:

   00 On Create User Defined (add user as AdminCc if requestor matches a list)
   99 On Create Notify AdminCc ...

The first part works fine - the user is added to the ticket as 
AdminCc. However, the second scrip finds no AdminCcs and sends no 
mail (No recipients found. Not sending). The scrips are definitely 
executing in the expected order - the RT log tells me so.

I thought that for a given transaction, each scrip was committed in 
order - so I expected scrip 99 to see the new AdminCc and send mail. 
But apparently not.

Can anyone explain why the newly minted AdminCc does not get a notification?

Thanks,
Steve


Stephen Turner
Senior Programmer/Analyst - Client Support Services
MIT Information Services and Technology (IS&T)


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com