/build/static/layout/Breadcrumb_cap_w.png

Ticket rule to set the Submitter as the Approver

I can not seem to find any information on this and my ability to write custom SQL rules is lacking. What I would like is to have a custom rule that will automatically set the ticket Submitter as the Approver. The logic here being that once a technician feels the issue is resolved, the submitter can then verify this by approving the solution. Any help that can be offered would be greatly appreciated.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: chucksteel 11 years ago
Red Belt
2

This shouldn't be too hard to do from the SQL point of view. You could get the rule started by using the rules wizard and search for tickets where submitter doesn't equal the approver. The SQL code for the update would be the following:

 update HD_TICKET
    set HD_TICKET.APPROVER_ID = HD_TICKET.SUBMITTER_ID  where 
        (HD_TICKET.ID in (<TICKET_IDS>))

Keep in mind that this would set every ticket's approver to the submitter. You might want to refine the rule to select the tickets where this is run a little, depending on your requirements.

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