How do I exclude a global scrip for specific queues

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”) &&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

Hi,

try this GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level

I think it should do what you like…

best
bj�rnAm 15.06.10 23:31, schrieb slamp slamp:

On Tue, Jun 15, 2010 at 5:28 PM, slamp slampslackamp@gmail.com wrote:

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”)&&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

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

Thank you for the suggestion. I would use that if it was part of RT
itself however it would just be a pain to keep RT updated while
keeping the patch working.2010/6/16 Björn Schulz bjoern.schulz@desy.de:

Hi,

try this GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level

I think it should do what you like…

best
björn

Am 15.06.10 23:31, schrieb slamp slamp:

On Tue, Jun 15, 2010 at 5:28 PM, slamp slampslackamp@gmail.com wrote:

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”)&&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

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

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

Scrips are stored in the database backend and are automatically
available to the upgraded RT software.

Cheers,
KenOn Wed, Jun 16, 2010 at 09:24:23AM -0400, slamp slamp wrote:

Thank you for the suggestion. I would use that if it was part of RT
itself however it would just be a pain to keep RT updated while
keeping the patch working.

2010/6/16 Bj?rn Schulz bjoern.schulz@desy.de:

Hi,

try this GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level

I think it should do what you like…

best
?bj?rn

Am 15.06.10 23:31, schrieb slamp slamp:

On Tue, Jun 15, 2010 at 5:28 PM, slamp slampslackamp@gmail.com ?wrote:

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”)&&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

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

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

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

i was actually talking about the files (Scrips.html and EditScrips)
that needs to be replaced in RT if using this extension.On Wed, Jun 16, 2010 at 9:26 AM, Kenneth Marshall ktm@rice.edu wrote:

Scrips are stored in the database backend and are automatically
available to the upgraded RT software.

Cheers,
Ken

On Wed, Jun 16, 2010 at 09:24:23AM -0400, slamp slamp wrote:

Thank you for the suggestion. I would use that if it was part of RT
itself however it would just be a pain to keep RT updated while
keeping the patch working.

2010/6/16 Bj?rn Schulz bjoern.schulz@desy.de:

Hi,

try this GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level

I think it should do what you like…

best
?bj?rn

Am 15.06.10 23:31, schrieb slamp slamp:

On Tue, Jun 15, 2010 at 5:28 PM, slamp slampslackamp@gmail.com ?wrote:

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”)&&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

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

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

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

Hi Slamp,

Oh, sorry although even that should not be terribly bad since
you can put the changed files in your ./local tree and move it
between the releases. You will still need to do some regression
testing, but you always need to do that. I do agree, that if
you are that concerned about the impact of such a change to the
maintainability of your RT installation, you may wish to reconsider
making this alteration at all. You will need to weigh your options.

Regards,
KenOn Wed, Jun 16, 2010 at 09:33:51AM -0400, slamp slamp wrote:

i was actually talking about the files (Scrips.html and EditScrips)
that needs to be replaced in RT if using this extension.

On Wed, Jun 16, 2010 at 9:26 AM, Kenneth Marshall ktm@rice.edu wrote:

Scrips are stored in the database backend and are automatically
available to the upgraded RT software.

Cheers,
Ken

On Wed, Jun 16, 2010 at 09:24:23AM -0400, slamp slamp wrote:

Thank you for the suggestion. I would use that if it was part of RT
itself however it would just be a pain to keep RT updated while
keeping the patch working.

2010/6/16 Bj?rn Schulz bjoern.schulz@desy.de:

Hi,

try this GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level

I think it should do what you like…

best
?bj?rn

Am 15.06.10 23:31, schrieb slamp slamp:

On Tue, Jun 15, 2010 at 5:28 PM, slamp slampslackamp@gmail.com ?wrote:

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”)&&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”)&&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

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

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

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

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

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”) &&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

for the other non-perl people like me, the following works.

return (($self->TransactionObj->Type eq “Correspond”) &&
(($self->TicketObj->QueueObj->Name ne “Q1”) &&
($self->TicketObj->QueueObj->Name ne “Q2”) &&
($self->TicketObj->QueueObj->Name ne “Q3”)));

This is my way:

my @QueueList = qw(Q1 Q2);
my $qname = $self->TicketObj->QueueObj->Name;
return 0 if grep /$qname/, @QueueList;
return 1;

ChrisAm 16.06.2010 18:28, schrieb slamp slamp:

On Tue, Jun 15, 2010 at 5:31 PM, slamp slamp slackamp@gmail.com wrote:

On Tue, Jun 15, 2010 at 5:28 PM, slamp slamp slackamp@gmail.com wrote:

I have a global scrip

Condition: User defined
Action: Notify All

I have this in my custom condition:

return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q1”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q2”));
return (($self->TransactionObj->Type eq “Correspond”) &&
($self->TicketObj->QueueObj->Name ne “Q3”));

Scrip is not executed when the queue is Q1, however it is executed
when the queue is either Q2 or Q3. I think I need to somehow combine
the logic but i am not much of a perl guy.

Any help is appreciated.

Would something like this work?

return (($self->TransactionObj->Type eq “Correspond”) &&
(($self->TicketObj->QueueObj->Name ne “Q1”) ||
($self->TicketObj->QueueObj->Name ne “Q2”) ||
($self->TicketObj->QueueObj->Name ne “Q3”)));

for the other non-perl people like me, the following works.

return (($self->TransactionObj->Type eq “Correspond”) &&
(($self->TicketObj->QueueObj->Name ne “Q1”) &&
($self->TicketObj->QueueObj->Name ne “Q2”) &&
($self->TicketObj->QueueObj->Name ne “Q3”)));

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