[SOLVED] Script to change the ticket status

Moderator: crythias

Locked
dcorbera
Znuny expert
Posts: 164
Joined: 15 Mar 2013, 17:09
Znuny Version: OTRS 3.2

[SOLVED] Script to change the ticket status

Post by dcorbera »

We are working on a script to change the ticket status when run it. The problem is we change the ticket-ticket_state_id value, but the ticket status doesn't change. How can we change it?
Thanks.
Last edited by dcorbera on 14 Aug 2013, 11:59, edited 1 time in total.
Using:
OTRS HELP DESK 3.3.5
OTRS ITSM 3.3.5
POSTGRES 8.3
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Script to change the ticket status

Post by reneeb »

Did you clean the caches?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Script to change the ticket status

Post by jojo »

use a webservice or the API to change the state. Don't work in Database directly
"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
Locked