/build/static/layout/Breadcrumb_cap_w.png

Rule for Modifying Tickets in K1000

I have noticed that when you select the 'on ticket save' option in the K1000 custom rules, that even if nothing was changed your rules will re-run. For instance I have a rule that generates an email to the owner whenever a ticket has been approved by a manager. Which is great, but everytime that someone looks at the ticket, if they click Save (Save and List, save and create child or just save) it will send this same email out.

How do i get it to only send the email out when that one field has been changed?

 

Any help would be greatly appreciated!


1 Comment   [ + ] Show comment
  • In the select query specify the field in the where clause. I have used fields in the HD_TICKET_CHANGE for this purpose. Here's my simplified query to send an email when a ticket is assigned to a technician with only the relevant fields for preventing the query from sending emails every time you save:

    SELECT

    C.DESCRIPTION, -- $description

    FROM HD_TICKET
    /* latest change ***/
    JOIN HD_TICKET_CHANGE C ON C.HD_TICKET_ID = HD_TICKET.ID

    WHERE
    C.DESCRIPTION LIKE 'Changed ticket Owner%'

    /* this is necessary when using group by functions */
    GROUP BY HD_TICKET.ID
    HAVING 1=1

    Hope this helps. I had this same problem. - lmland 10 years ago

Answers (0)

Be the first to answer this question

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