[SOLVED] 3.3.8 : Wrong owner (?) displayed in Zoom window

Moderator: crythias

Locked
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

[SOLVED] 3.3.8 : Wrong owner (?) displayed in Zoom window

Post by kruegerM »

This may be too far "out of the box" - but I'll ask with fingers crossed...

I have developed a "Round Robin" perl script that runs against our OTRS database.
It operates off a table I added to the schema that holds the agen'ts login and a "assigned" Y/N field.
It looks for tickets assigned to "Admin OTRS", then looks at the custom table for an "assigned=N" user
It looks up the id of the user in the OTRS 'users' table based on the login selected
It changes the user_id in the 'ticket' table to be the the id found
It marks that user "assigned=Y" in the custom table and moves to the next ticket, if exists

Tickets are assigned; I can search in the interface on a given agent and see their tickets. However, some of the tickets, when I view the 'zoom' information - the owner still shows as 'Admin OTRS'. If I query the database, the user_id in the 'ticket' table shows the correct user.
I'm stumped on why the data display would still show 'Admin OTRS' - and only part of the time.

I realize by modifying the database with a script I have ventured WAY off the path, but still hoping someone knows where the 'Owner' data in the zoom window is selected and where I went amiss.

Thanks

Mark
National Jewish Health
Last edited by kruegerM on 18 Dec 2014, 15:54, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: 3.3.8 : Wrong owner (?) displayed in Zoom window

Post by jojo »

Never write to the database directly!

Please use only the methods provided by the API or via webservices
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

Re: 3.3.8 : Wrong owner (?) displayed in Zoom window

Post by kruegerM »

thanks for the quick response; had a feeling this was going to be the answer.
so I can search ... just a matter of figuring out the round-robin using api/web services.

--------------------------------------------------

So once I get who the new user should be, I send an email to OTRS with
subject = ticket title + "Round Robin Assignment"
header info of X-OTRS-OwnerID = <new_user_id>

OTRS should match by the title as a followup ... and hopefully change the owner as directed by the X-header......
gotta love the drawing board :)


M
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: 3.3.8 : Wrong owner (?) displayed in Zoom window

Post by crythias »

also cacheing...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: 3.3.8 : Wrong owner (?) displayed in Zoom window

Post by jojo »

What about using a webeservice?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

Re: 3.3.8 : Wrong owner (?) displayed in Zoom window

Post by kruegerM »

actually hadn't looked at webservices before ... I like :)
this is definitely the way to hit it.
thanks again!
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

3.3.8 : Wrong owner (?) displayed in Zoom window

Post by kruegerM »

Again my thanks - using the API/webservice is better than I could have anticipated. And on top of it all, we get a notification email going out to the new ticket owner about the reassignment. Very Very nice.

ok, I know almost what's going on. System is once again displaying the owner as 'Admin OTRS' even though it's been reassigned, this time using the API. Database shows the correct user_id but GUI shows 'Admin OTRS'. If I run otrs.DeleteCache.pl, everything displays correctly.
Locked