/build/static/layout/Breadcrumb_cap_w.png

K1000 Ticket Rule - Change Ticket Status from New to Opened when Owner is assigned

I am sql ignorant so any help would be appreciated. We would like the Ticket Status to be set from 'New' to 'Opened' when the ticket is assigned to an owner (anything other than 'Unassigned'). No notifications necessary.
Thank you!

0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: MichaelMc 8 years ago
Orange Senior Belt
2

Top Answer

This one should be easy to do without any SQL. In the wizard, just select Ticket status is new and Owner user name is not NULL, change status to Opened. Run the rule on ticket save.

Comments:
  • I'll give it a try, thank you so much. - kimimtt 8 years ago
    • Well, the issue is now, that it changes the status from New to Opened on Save so when the ticket is created it's prematurely changing the status. We only want it to do so when assigned - kimimtt 8 years ago
      • still having issues so if anyone has a script that does this, would you mind sharing? Thank you - kimimtt 8 years ago
  • it works ! thank you ! - samijuke 7 years ago
Posted by: Hobbsy 8 years ago
Red Belt
0
Ok , so here's the process I followed

Create a ticket rule in your queue using the wizard, I went for the following


Then hit Next and use the following


In the resulting ticket rule check out the bottom of the select statement it will look a little like this

where HD_PRIORITY.ID = HD_PRIORITY_ID
                        and HD_STATUS.ID = HD_STATUS_ID
                        and HD_IMPACT.ID = HD_IMPACT_ID
                        and HD_CATEGORY.ID = HD_CATEGORY_ID
                        and (((  HD_STATUS.NAME = 'New') AND ( exists  (select 1 from USER where HD_TICKET.OWNER_ID = USER.ID and USER.USER_NAME = '0')) ) and HD_TICKET.HD_QUEUE_ID = 30 )

replace the highlighted text with the following highlighted text

where HD_PRIORITY.ID = HD_PRIORITY_ID
                        and HD_STATUS.ID = HD_STATUS_ID
                        and HD_IMPACT.ID = HD_IMPACT_ID
                        and HD_CATEGORY.ID = HD_CATEGORY_ID
                        and (((  HD_STATUS.NAME = 'New') AND (HD_TICKET.OWNER_ID != 0) ) and HD_TICKET.HD_QUEUE_ID = 30 )

Set the ticket rule to run on ticket save and you should be done


Comments:
  • Thank you once again. I will give it a try and update the post. Thank you for your time! - kimimtt 8 years ago
Posted by: pschiele 5 years ago
White Belt
0

I can confirm this is still working in v9.0.270


Thanks!

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