Is it possible to automatize an email when a ticket is moved?

Moderator: crythias

Post Reply
IrishPikachu
Znuny newbie
Posts: 3
Joined: 02 Apr 2024, 14:42
Znuny Version: 7.0
Real Name: Teodor Florea

Is it possible to automatize an email when a ticket is moved?

Post by IrishPikachu »

Hello folks, I hope everyone is alright.

The institution I work at entrusts us to send an email to the user every time we move their ticket to another queue. The thing is, I work in first line IT support and I do a lot of redirection. This new rule is slowing me down tremendously - I have to reply to the ticket with the transfer message, move it, and reset the owner to none so someone in the new queue will read it. Given the speed (or lack thereof) of the computer's we're lent for work and the volume of tickets, it's very time-consuming.
Is there a way to automatize the email whenever it's moved from our main queue to another? I tried snooping around GenericAgent and I found out it's possible to set a note automatically when a ticket's moved to a specific queue, but the note isn't visible to the customer, solely to other Znuny agents.

Thanks for the help.
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by root »

Hi,

You are probably looking for Ticket Notifications and the system configuration Ticket::EventModulePost###2700-ForceOwnerResetOnMove

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by hkais »

IrishPikachu wrote: 03 Apr 2024, 09:04 Hello folks, I hope everyone is alright.

The institution I work at entrusts us to send an email to the user every time we move their ticket to another queue. The thing is, I work in first line IT support and I do a lot of redirection. This new rule is slowing me down tremendously - I have to reply to the ticket with the transfer message, move it, and reset the owner to none so someone in the new queue will read it. Given the speed (or lack thereof) of the computer's we're lent for work and the volume of tickets, it's very time-consuming.
Is there a way to automatize the email whenever it's moved from our main queue to another? I tried snooping around GenericAgent and I found out it's possible to set a note automatically when a ticket's moved to a specific queue, but the note isn't visible to the customer, solely to other Znuny agents.

Thanks for the help.

I would use a generic agent using:

Code: Select all

- Event Based Execution (Single Ticket)
with Event: TicketQueueUpdate

and on Select i would select your named queue
"yourTargetQueue"

and on Update, you can set the owner to Admin
So on each move to the queue it will remove the owner and set admin as owner

The benefits why using generic agents vs other solutions in znuny, you can easily find via googling: "Generic Agent vs Postmaster Znuny"
I am not allowed to share direct link here...
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
IrishPikachu
Znuny newbie
Posts: 3
Joined: 02 Apr 2024, 14:42
Znuny Version: 7.0
Real Name: Teodor Florea

Re: Is it possible to automatize an email when a ticket is moved?

Post by IrishPikachu »

Hello hkais,

Thanks for your answer. I suppose sending the transfer reply and then moving without having to change the owner is already something. Thanks for the QOL tip.

Thanks!
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by root »

hkais wrote: 03 Apr 2024, 12:42

So on each move to the queue it will remove the owner and set admin as owner
That's what exactly is done with Ticket::EventModulePost###2700-ForceOwnerResetOnMove

Really don't know why the wheel needs to be reinvented.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
IrishPikachu
Znuny newbie
Posts: 3
Joined: 02 Apr 2024, 14:42
Znuny Version: 7.0
Real Name: Teodor Florea

Re: Is it possible to automatize an email when a ticket is moved?

Post by IrishPikachu »

root wrote: 03 Apr 2024, 15:33 That's what exactly is done with Ticket::EventModulePost###2700-ForceOwnerResetOnMove
Thanks for this.
Do you know if there is a way to auto-send an email when a ticket is moved?

- Teo
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by root »

IrishPikachu wrote: 03 Apr 2024, 15:49
root wrote: 03 Apr 2024, 15:33 That's what exactly is done with Ticket::EventModulePost###2700-ForceOwnerResetOnMove
Thanks for this.
Do you know if there is a way to auto-send an email when a ticket is moved?

Ticket Notification, as already said, use the event TicketQueueUpdate as trigger.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by hkais »

root wrote: 03 Apr 2024, 15:33
That's what exactly is done with Ticket::EventModulePost###2700-ForceOwnerResetOnMove

Really don't know why the wheel needs to be reinvented.

- Roy
I know this feature only as global config (for all Queues)
How can I limit it to only specific queues, which are possible with the GA?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by root »

hkais wrote: 04 Apr 2024, 16:10
root wrote: 03 Apr 2024, 15:33
That's what exactly is done with Ticket::EventModulePost###2700-ForceOwnerResetOnMove

Really don't know why the wheel needs to be reinvented.

- Roy
I know this feature only as global config (for all Queues)
How can I limit it to only specific queues, which are possible with the GA?
It's global, and I did not see any restriction to queues mentioned in the initial post.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Is it possible to automatize an email when a ticket is moved?

Post by hkais »

root wrote: 04 Apr 2024, 17:18
It's global, and I did not see any restriction to queues mentioned in the initial post.

- Roy
IMHO it is inherrent a restriction, if you have to do something globally, instead of having the freedom to choose where you want to use it.
Anyway the user has now both options to define it globally for all queues (system config) or selectively for few queues (generic agent)
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Post Reply