Stichel wrote:This even happens to new tickets after the configuration of customer_id has been changed!?
No. It will rely on the CustomerUser configuration in Config.pm (make sure SysConfig doesn't have something, too.)
Stichel wrote:Regarding retro fix, which job do you suggest me to create for this purpose?
It's unfortunately a pain, because I don't know your parameters.
If you were creating everyone in a company/department with the same CustomerID, I'd search for customer_id = *@domain.tld and Set customer_id=company
But if it's completely changed, you're going to have a task on your hands. While not recommended to do so, you *could* mass update the ticket table directly (after backup of database).
Works like this:
Create a spreadsheet. Column A is email addresses/old customer_id and Column B is new customer_id.
Column C is something like:
Code: Select all
="update ticket set customer_id = """ & B2 & """ WHERE customer_id = """ & A2 & """;"
copy that down your list, then copy the result into a sql interface for your otrs data.
Test a sample entry or 2-3 before you do the massive update.
In theory, it shouldn't hurt much, but it's a one way change, and cannot be undone (though you can swap the column entries and go "back" unless you're combining customer_ids/they would no longer be a one-to-one and you'd have to consider other options.).
If you're not comfortable with this, you can use the API to do it but ... basically, same deal.