Name: otrs-address-extractor
Owner: Wikimedia Deutschland e.V.
Description: Command line tool to extract addresses from an OTRS CSV export.
Created: 2017-01-23 19:50:36.0
Updated: 2018-02-27 13:45:09.0
Pushed: 2018-01-26 14:27:37.0
Homepage: null
Size: 96
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A command line tool to
Create a file called .env
in the directory where you run the script. It must contain the database access credentials
and the OTRS API credentials.
The username and password for the OTRS API only need to be a valid user, not necessarily the user you want to assign the tickets to.
You can use the provided env.example
as a template.
Run the command
php otrs_tool.php extract:db --output output.csv --rejected rejected.csv
If you want to output the ticket IDs with direct links to your OTRS instance, run the command like this:
php otrs_tool.php extract:db --link-template="https://example.com/otrs/index.pl?Action=AgentTicketZoom;TicketID=%d" --output output.csv --rejected rejected.csv
You can update the tickets with a new user, e.g. “address-check” to mark them as “someone has already looked at this”.
In OTRS, find out the user id of the user you want to assign the tickets to. In the following example that user ID is 27.
Run the command
php otrs_tool.php update-ticket -owner 27 change_tickets.csv
Running the command can take some time for many tickets.
composer test