[Solved] Delete ITSM Change

Moderator: crythias

Post Reply
tina
Znuny newbie
Posts: 48
Joined: 10 Apr 2012, 17:59
Znuny Version: 3.2.1
Real Name: boutayna

[Solved] Delete ITSM Change

Post by tina »

Hi,
I would like to know if it is possible to delete ITSM Change in OTRS?
I search in interface and I didn't find anyway to do it?
it is very important to me to delete some data because in my first use I just put exemple data not real,
Last edited by tina on 13 Jun 2012, 10:15, edited 1 time in total.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Delete ITSM Change

Post by jojo »

have a look on the shell in the OTRS bin directory. There is a Perl script for deleting changes
"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
micshi
Znuny expert
Posts: 191
Joined: 05 Jul 2011, 16:10
Znuny Version: 3.2.2
Real Name: Micshi
Location: Beijing
Contact:

Re: Delete ITSM Change

Post by micshi »

Enable ChangeDelete menu from sysconfig.

ITSMChange::Frontend::MenuModule###100-ChangeDelete

Only the change manager can delete the changes which state is not in 'requested' or 'pending approval'.
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Delete ITSM Change

Post by jojo »

thats why you should use the script in bin
"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
tina
Znuny newbie
Posts: 48
Joined: 10 Apr 2012, 17:59
Znuny Version: 3.2.1
Real Name: boutayna

Re: Delete ITSM Change

Post by tina »

Hi,
I enabled ChangeDelete menu from sysconfig,
but when I try to delete the following error appear "error ajax during communication"

apache log:
ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Fri Apr 20 09:08:07 2012
Message: Module Kernel::Modules::AgentITSMChangeDelete not registered in Kernel/Config.pm!

otrs log:
[Error][Kernel::System::Web::InterfaceAgent::Run][731] Module Kernel::Modules::AgentITSMChangeDelete not registered in Kernel/Config.pm!
tina
Znuny newbie
Posts: 48
Joined: 10 Apr 2012, 17:59
Znuny Version: 3.2.1
Real Name: boutayna

Re: Delete ITSM Change

Post by tina »

I use OTRS.3.1.3
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: Delete ITSM Change

Post by Rmack09 »

Try This
To delete a ITSM Change:

Go to your OTRS bin folder (i.e /opt/otrs/bin)
Then use the following command ./otrs.ITSMChangeDelete.pl --ChangeNumber (i.e ./otrs.ITSMChangeDelete.pl --ChangeNumber 2012042310000024)

Please sure you know the correct Change number you would like to delete.
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
tina
Znuny newbie
Posts: 48
Joined: 10 Apr 2012, 17:59
Znuny Version: 3.2.1
Real Name: boutayna

Re: Delete ITSM Change

Post by tina »

Ok thank you,I will try this,
but I would like to know if there is any solution for this bug?
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: Delete ITSM Change

Post by Rmack09 »

As far as I know this may not be a bug. It could be that this feature is not fully configured in your system.
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
tina
Znuny newbie
Posts: 48
Joined: 10 Apr 2012, 17:59
Znuny Version: 3.2.1
Real Name: boutayna

Re: Delete ITSM Change

Post by tina »

what should I do to fix this error ?
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: Delete ITSM Change

Post by Rmack09 »

I dont believe there is a way to fix that. I find that deleting a Change Request is much easier via command line
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
tina
Znuny newbie
Posts: 48
Joined: 10 Apr 2012, 17:59
Znuny Version: 3.2.1
Real Name: boutayna

Re: Delete ITSM Change

Post by tina »

the solution to delete ITSMChange is that you should also enable changeDelete in Sysconfig

Frontend::Module###AgentITSMChangeDelete

and I want to thank the OTRS team for that amazing work :)
Post Reply