Deleting all change requests from start to ending date

Moderator: crythias

Locked
wiegandr
Znuny newbie
Posts: 32
Joined: 23 Jun 2016, 08:55
Znuny Version: OTRS5
Real Name: Ralf Wiegand
Company: TML Technologies

Deleting all change requests from start to ending date

Post by wiegandr »

Hello Group -
I am starting to phase in a new change request/ticket OTRS 5 system. I would like to delete all the test ITSM Change Requests from start to end date. What is the best approach to accomplish this?

Thank You
Ralf
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Deleting all change requests from start to ending date

Post by RStraub »

Are you talking about tickets of type RfC (= Request for Change) or actual Changes?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
wiegandr
Znuny newbie
Posts: 32
Joined: 23 Jun 2016, 08:55
Znuny Version: OTRS5
Real Name: Ralf Wiegand
Company: TML Technologies

Re: Deleting all change requests from start to ending date

Post by wiegandr »

ITSM Change - This way we are starting out without having all the test ITSM Changes in the new ORTS 5 server.
TX - Ralf
wiegandr
Znuny newbie
Posts: 32
Joined: 23 Jun 2016, 08:55
Znuny Version: OTRS5
Real Name: Ralf Wiegand
Company: TML Technologies

Re: Deleting all change requests from start to ending date

Post by wiegandr »

./otrs.Console.pl Admin::ITSM::Change::Delete
this will delete all,

Q: but is there a way to delete them by a date range?

tx - Ralf
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Deleting all change requests from start to ending date

Post by RStraub »

Not that I know of - are it that many?

You might write a small standalone script that uses a search:
http://otrs.perl-services.de/docs/ITSMC ... hange.html

and then pass the IDs to the delete script.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Locked