Thanks for the great tutorial! I've got my custom Event module written and it is running. However, is there a way to set the order of which these modules run. Here's my problem. I'm attempting to set the responsible party based on a specific queue when the ticket is created and when the queue is updated. The events are firing the module as it should, however, it is for the queue that its coming from, not the queue it's going into. For example, let's say that I'm the supervisor for queue A. Therefore my module will assign me as the responsible party for any tickets that get moved into queue A. But what happens is when someone moves the ticket into queue B the responsible party is set, but when someone moves it into queue A nothing happens. Based on my debugging, I've determined that the custom module must be running before the actual move takes place. Is there anyway to change the order of which these get processed so that the event will run post queue move? I hope this makes sense.
TIA,
Daniel
Ticket Event Custom Module order of operation
Moderator: crythias
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Ticket Event Custom Module order of operation
What Event are you triggering against? I'm hoping it's TicketQueueUpdate, which should have the destination information instead of the source.
As for order of operations, there is no reason you can't trigger on (TicketCreate|TicketQueueUpdate) and react to both/either in the order you wish in one Event.
As for order of operations, there is no reason you can't trigger on (TicketCreate|TicketQueueUpdate) and react to both/either in the order you wish in one Event.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 69
- Joined: 29 Apr 2016, 10:23
- Znuny Version: 3.2, 5
- Real Name: Dennis Cua
- Company: N/A
Re: Ticket Event Custom Module order of operation
The link to this tutorial could not be found already. I am not sure if I'm having connection issue or the post is archived? Is there a chance I can read this tutorial?
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Ticket Event Custom Module order of operation
@OTRSRDNewbie: viewtopic.php?f=60&t=10090
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de