/build/static/layout/Breadcrumb_cap_w.png

Change unassigned to a specific username

I accidentally deleted a user from the k1000 and I have re added the user but I need to have a way to find all Assigned User - Unassigned tickets to a specific user.

Basically any ticket that has an Assigned User User Name of Unassigned, needs to be changed to a specific username. Is there a way to do this?

Also if I do an advanced search on our Tickets and I do a search for Assigned User User name - contains - Unassigned, it doesn't bring up any results even though there are many tickets with Unassigned as the user.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: dchristian 12 years ago
Red Belt
0
Ok so like all ticket rules BE CAREFUL!!!!

I've done something similar like this for a client before.

Create a new rule. Don't worry about running on a schedule or anything, you'll only need it once.

You could use this as a select to find all the tickets with an owner un-assigned before a given date.

Make sure you also change your queue id to match.
SELECT *
FROM HD_TICKET T
WHERE T.CREATED < '2012-02-01'
AND OWNER_ID = 0
AND HD_QUEUE_ID = 17

Here's the update command. What i did in the example was assign them all to myself.
UPDATE HD_TICKET
SET OWNER_ID = (SELECT ID
FROM USER
WHERE USER_NAME = 'DCHRISTIAN')
WHERE HD_TICKET.ID IN (<TICKET_IDS>)



What i would do to test is add the following line to the bottom of your select.
and ID = {NUMBER OF A BAD TICKET HERE, NO BRACKETS}
If that works as expected you could do it for all the tickets in the queue.
Posted by: callard 12 years ago
Senior Yellow Belt
0
Thanks for the help, worked perfectly!
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