Using Perl API to change ticket user

English! place to talk about OTRS development, programming and coding

Moderator: tto

Post Reply
dwlangham
OTRS newbie
Posts: 8
Joined: 25 Apr 2018, 15:31
OTRS Version?: 6.000

Using Perl API to change ticket user

Post by dwlangham » 20 Aug 2018, 21:11

Please, can someone point me to an example of actual perl code (ie., NOT the api docs) where someone has used the Perl api to set the customer user on a ticket? I've read the documentation and tried what's shown (e.g., http://doc.otrs.com/doc/api/otrs/6.0/Pe ... et.pm.html), but I cannot get anything to work. I'm new to Perl, so that may be my problem.

I've Googled for an example of an actual implementation of the module call to no avail.

ANY HELP will be greatly appreciated. If I can't figure this out I'll be updating the values using SQL statement. Not good.

Don

root
Moderator
Posts: 1303
Joined: 18 Dec 2007, 12:23
OTRS Version?: 4/5/6
Real Name: Roy Kaldung
Company: Znuny Inc.
Contact:

Re: Using Perl API to change ticket user

Post by root » 26 Aug 2018, 08:31

Hi,

That's the a transition action from process mgmt, you're completly wrong.
See the API http://doc.otrs.com/doc/api/otrs/6.0/Pe ... ustomerSet and usage here https://github.com/OTRS/otrs/blob/rel-6 ... er.pm#L189.


Btw, the community don't dare. Change your database if you like, you'll see what happen.

- Roy
OTRS 4/5/6 CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

You need professional services? Check out https://www.znuny.com/

Post Reply