/build/static/layout/Breadcrumb_cap_w.png

Email on save new ticket but not on updates to ticket

I'm using the email notify any user or group by email on save from
http://www.kace.com/support/kb/index.php?action=artikel&cat=8&id=613&artlang=en

It works fine and I've already updated it to include other information i need like location, phone, and user information. The problem is the rule only runs on the first save? How do I make it so if a comment is added and saved it would email again and include all the comments so far added to the ticket? Is this possible and can anyone point me in the right direction on why it only sends an email on creation and not updates? I'm just not sure what I need to change to make it on updates. Thanks in advance.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: steelc 12 years ago
Senior Yellow Belt
3
It's only sending on new tickets because the SQL includes C.DESCRIPTION LIKE 'TICKET CREATED%'. If you don't include that statement then it will match for ticket updates. On our setup I have two rules, one for new tickets (which includes a similar statement, and another on ticket updates that looks for DESCRIPTION NOT LIKE 'TICKET CREATED%'. I do this because the text I want in the emails is different between new tickets and updated tickets.

Including all comments is more tricky. You could perform a group concatenate on all of the matching ticket comments. I haven't done that so I'm not sure of what the exact syntax would be to accomplish that.
Posted by: quickwhips 12 years ago
Orange Senior Belt
0
Thanks steelc. You have been a real help.
Posted by: quickwhips 12 years ago
Orange Senior Belt
0
Using the web link i posted above I changed the where statement to be

WHERE

S.NAME LIKE '%Close%'

This way I could reference the status instead of the description change. It worked for me. Also I referenced in the email body History: $history

This showed me the complete history of the ticket in the email. Hope this helps someone else down the line.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ