[rt-users] Scrip condition met but not acted on - Solved
Mathew Snyder
theillien at yahoo.com
Tue Sep 25 09:59:41 EDT 2007
Found the solution to my last problem at
http://www.gossamer-threads.com/lists/rt/users/58549#58549
Keep up with me and what I'm up to: http://theillien.blogspot.com
Mathew Snyder wrote:
> Stephen Turner wrote:
>> At Monday 9/24/2007 03:04 PM, you wrote:
>>> I've figured out the problem. The Custom condition that checks if a
>>> transaction
>>> is for CustomFields, is on the one CF and that the value is being set to
>>> Provisioning doesn't run during a ticket Create action. If I set the
>>> value of
>>> that CF to Provisioning *after* the ticket has been created, the child
>>> tickets
>>> I'm trying to spawn are created. I'm wondering if using
>>> TransactionBatch will
>>> fix this.
>> Can you do something like this in the condition:
>>
>> IF transaction type is "Create"
>> OR (transaction type is "CustomField" and transaction field id = 5)
>> return 1
>> ELSE
>> return 0
>>
>> or maybe you could dispense with the custom action part and have this in
>> the condition:
>>
>> IF ( transaction type is "Create" and Ticket Type CF = 'Provisioning')
>> OR (transaction type is "CustomField" and transaction field id = 5 and
>> trans new value = 'Provisioning')
>> return 1
>> ELSE
>> return 0
>>
>>
>> Steve
>>
>
> I've pretty much answered my own question. However, it isn't able to create the
> child tickets giving the following information:
>
> [Mon Sep 24 19:41:22 2007] [debug]: ARRAY(0x82b90118) not a recognised queue
> object. (/usr/local/rt3/lib/RT/Ticket_Overlay.pm:403)
> [Mon Sep 24 19:41:22 2007] [debug]: RT::Ticket=HASH(0x82b7f428) No queue given
> for ticket creation. (/usr/local/rt3/lib/RT/Ticket_Overlay.pm:408)
> [Mon Sep 24 19:41:22 2007] [error]: Couldn't create related ticket create-Child
> for 87375 Could not create ticket. Queue not set
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:619)
> [Mon Sep 24 19:41:22 2007] [warning]: Use of uninitialized value in
> concatenation (.) or string at /usr/local/rt3/lib/RT/Action/CreateTickets.pm
> line 1416. (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1416)
> [Mon Sep 24 19:41:22 2007] [debug]: Handling links for
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1416)
> [Mon Sep 24 19:41:22 2007] [debug]: Building Parents link for 87375
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1442)
> [Mon Sep 24 19:41:22 2007] [crit]: HasRight called with no valid object
> (/usr/local/rt3/lib/RT/Principal_Overlay.pm:323)
> [Mon Sep 24 19:41:22 2007] [warning]: AddLink thru 87375 failed: Permission
> Denied (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1451)
> [Mon Sep 24 19:41:22 2007] [debug]: Building Parents link for 87375
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1442)
> [Mon Sep 24 19:41:22 2007] [crit]: HasRight called with no valid object
> (/usr/local/rt3/lib/RT/Principal_Overlay.pm:323)
> [Mon Sep 24 19:41:22 2007] [warning]: AddLink thru 87375 failed: Permission
> Denied (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1451)
> [Mon Sep 24 19:41:22 2007] [warning]: Use of uninitialized value in
> concatenation (.) or string at /usr/local/rt3/lib/RT/Action/CreateTickets.pm
> line 1416. (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1416)
> [Mon Sep 24 19:41:22 2007] [debug]: Handling links for
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1416)
> [Mon Sep 24 19:41:22 2007] [debug]: Building Parents link for 87375
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1442)
> [Mon Sep 24 19:41:22 2007] [crit]: HasRight called with no valid object
> (/usr/local/rt3/lib/RT/Principal_Overlay.pm:323)
> [Mon Sep 24 19:41:22 2007] [warning]: AddLink thru 87375 failed: Permission
> Denied (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1451)
> [Mon Sep 24 19:41:22 2007] [debug]: Building Parents link for 87375
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1442)
> [Mon Sep 24 19:41:22 2007] [crit]: HasRight called with no valid object
> (/usr/local/rt3/lib/RT/Principal_Overlay.pm:323)
> [Mon Sep 24 19:41:22 2007] [warning]: AddLink thru 87375 failed: Permission
> Denied (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1451)
> [Mon Sep 24 19:41:22 2007] [warning]: Use of uninitialized value in
> concatenation (.) or string at /usr/local/rt3/lib/RT/Action/CreateTickets.pm
> line 1463. (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1463)
> [Mon Sep 24 19:41:22 2007] [debug]: Handling postponed actions for
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1463)
> [Mon Sep 24 19:41:22 2007] [warning]: Use of uninitialized value in
> concatenation (.) or string at /usr/local/rt3/lib/RT/Action/CreateTickets.pm
> line 1463. (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1463)
> [Mon Sep 24 19:41:22 2007] [debug]: Handling postponed actions for
> (/usr/local/rt3/lib/RT/Action/CreateTickets.pm:1463)
>
> Not sure what the problem is considering I've been able to create child tickets
> when the condition was set the previous way. That tells me it isn't really a
> permissions problem that I can see.
>
> Mathew
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
More information about the rt-users
mailing list