Using Perl API to change ticket user

English! place to talk about development, programming and coding
Post Reply
dwlangham
Znuny newbie
Posts: 8
Joined: 25 Apr 2018, 15:31
Znuny Version: 6.000

Using Perl API to change ticket user

Post by dwlangham »

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
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Using Perl API to change ticket user

Post by root »

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
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

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

Do you want to contribute or want to know where it goes ?
Post Reply