Hallo zusammen,
für die Agenten nutzen wir die "interne" ORTS Datenbank Tabelle Users.
Ich würde nun gerne noch mehr Felder hier in die Oberfläche einbauen.
Abteilung:
Firmensitz:
Telefon:
Fax:
Um später natürlich auch diese Felder über die Oberfläche zu pflegen und zu füllen.
Wie auch in Vorlagen und automatischen Antworten zu verwenden.
<OTRS_CURRENT_UserFirstname> <OTRS_CURRENT_UserLastname>
<OTRS_CURRENT_UserAbteilung>
<OTRS_CURRENT_UserFirmensitz>
.....
Habt Ihr mir da einen Tipp wie ich das hinbekommen kann?
Grüße Matthias
OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
-
- Znuny newbie
- Posts: 8
- Joined: 24 Feb 2021, 14:00
- Znuny Version: 6.x
- Real Name: Matthias Kunz
- Company: Gesundheitswelt AG
OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
You do not have the required permissions to view the files attached to this post.
Re: OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
Grundsätzlich wie hier beschrieben, muss aber noch auf die jeweilige OTRS Version der System Konfiguration angepasst werden
https://blog.otrs.com/2011/09/05/agent- ... ignatures/
https://blog.otrs.com/2011/09/05/agent- ... ignatures/
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
Hallo,
hier ist ein Beispiel für eine Variable UserInitial. In der gleichen XML kannst Du das Setting Element mehrfachnnutzen, nur die relevanten Keys natürlich anpassen: viewtopic.php?f=62&t=42142
- Roy
hier ist ein Beispiel für eine Variable UserInitial. In der gleichen XML kannst Du das Setting Element mehrfachnnutzen, nur die relevanten Keys natürlich anpassen: viewtopic.php?f=62&t=42142
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 8
- Joined: 24 Feb 2021, 14:00
- Znuny Version: 6.x
- Real Name: Matthias Kunz
- Company: Gesundheitswelt AG
Re: OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
Hallo zusammen,
so ganz funktioniert das leider bei mir nicht.
Ich habe nun folgendes unternommen:
Eine neue Datei angelegt:
/opt/otrs-6.0.25/Kernel/Config/Files/XML/AgentCustomize.xml
/opt/otrs-6.0.25/Kernel/Config/Files/AgentCustomize.xml (später noch mal hier angelgt)
Mit folgendem Inhalt - Valid habe ich auf 1 gesetzt:
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="PreferencesGroups###PersonalPhoneNumber" Required="0" Valid="1">
<Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description>
<Group>Framework</Group>
<SubGroup>Frontend::Agent::Preferences</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::PreferencesGeneric</Item>
<Item Key="Column">Other Settings</Item>
<Item Key="Label" Translatable="1">Example for agent phone number</Item>
<Item Key="Key" Translatable="1">Example for agent phone number</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserPhoneNumber"}</Item>
<Item Key="PrefKey">UserPhoneNumber</Item>
<Item Key="Prio">7000</Item>
<Item Key="Active">1</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
anschließend wollte ich über root den Sysconfig ausführen....was leider unter root nicht funktioniert
bin/otrs.Console.pl Maint::Config::Rebuild
Daraufhin habe ich mir beholfen und einfach über den Paketmanager ein Paket neu installiert.
Weil dadurch wird ja meiner Meinung nach auch ein Rebuild durchgeführt.
Leider finde ich aber den Punkt Frontend::Agent::Preferences nicht in der Sysconfig
oder auch nicht bei den Agenteneinstellungen.
Hab ich was falsch gemacht?
Grüße Matthias
so ganz funktioniert das leider bei mir nicht.
Ich habe nun folgendes unternommen:
Eine neue Datei angelegt:
/opt/otrs-6.0.25/Kernel/Config/Files/XML/AgentCustomize.xml
/opt/otrs-6.0.25/Kernel/Config/Files/AgentCustomize.xml (später noch mal hier angelgt)
Mit folgendem Inhalt - Valid habe ich auf 1 gesetzt:
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="PreferencesGroups###PersonalPhoneNumber" Required="0" Valid="1">
<Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description>
<Group>Framework</Group>
<SubGroup>Frontend::Agent::Preferences</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::PreferencesGeneric</Item>
<Item Key="Column">Other Settings</Item>
<Item Key="Label" Translatable="1">Example for agent phone number</Item>
<Item Key="Key" Translatable="1">Example for agent phone number</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserPhoneNumber"}</Item>
<Item Key="PrefKey">UserPhoneNumber</Item>
<Item Key="Prio">7000</Item>
<Item Key="Active">1</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
anschließend wollte ich über root den Sysconfig ausführen....was leider unter root nicht funktioniert
bin/otrs.Console.pl Maint::Config::Rebuild
Daraufhin habe ich mir beholfen und einfach über den Paketmanager ein Paket neu installiert.
Weil dadurch wird ja meiner Meinung nach auch ein Rebuild durchgeführt.
Leider finde ich aber den Punkt Frontend::Agent::Preferences nicht in der Sysconfig
oder auch nicht bei den Agenteneinstellungen.
Hab ich was falsch gemacht?
Grüße Matthias
-
- Znuny superhero
- Posts: 889
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
Hallo Matthias,
benutz die XML von Roy. Deine ist für eine alte OTRS Version.
Den Befehl musst Du als OTRS-Benutzer (su otrs) ausführen. Dein Weg war natürlich kreativ
Der Pfad "/opt/otrs-6.0.25/Kernel/Config/Files/XML/AgentCustomize.xml" ist ausreichend. Den anderen benötigest Du nicht.
Du solltest jedoch beachten, dass die XML bei einem Update manuell mitgezogen werden muss, wenn sie nicht paketiert wird.
Viele Grüße
Emin
benutz die XML von Roy. Deine ist für eine alte OTRS Version.
Den Befehl musst Du als OTRS-Benutzer (su otrs) ausführen. Dein Weg war natürlich kreativ
Der Pfad "/opt/otrs-6.0.25/Kernel/Config/Files/XML/AgentCustomize.xml" ist ausreichend. Den anderen benötigest Du nicht.
Du solltest jedoch beachten, dass die XML bei einem Update manuell mitgezogen werden muss, wenn sie nicht paketiert wird.
Viele Grüße
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
-
- Znuny newbie
- Posts: 8
- Joined: 24 Feb 2021, 14:00
- Znuny Version: 6.x
- Real Name: Matthias Kunz
- Company: Gesundheitswelt AG
Re: OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
Hallo Emin,
Tatsächlich den Befehl per su otrs ausführen und schon erhält man auch eine Aussagekräftige Fehlermeldung zu der von mir zuvor verwendeten xml.
bin/otrs.Console.pl Maint::Config::Rebuild
Done
OK
In der Systemkonfig suchen geht nicht aber über die Baumstruktur habe ich den Eintrag gefunden...
Jetzt fehlt mir aber nur das Feld beim Agenten um was einzutragen, also weder im Agent noch im Benutzer Einstellungen Bearbeiten sichtbar.
In der Sysconfig schaut es so aus:
Siehe Anlage:-)
Sorry wenn ich mich so doof anstelle.
Grüße Matthias
Tatsächlich den Befehl per su otrs ausführen und schon erhält man auch eine Aussagekräftige Fehlermeldung zu der von mir zuvor verwendeten xml.
- Invalid xml Format found in .......
- oder old config item was found
bin/otrs.Console.pl Maint::Config::Rebuild
Done
OK
In der Systemkonfig suchen geht nicht aber über die Baumstruktur habe ich den Eintrag gefunden...
Jetzt fehlt mir aber nur das Feld beim Agenten um was einzutragen, also weder im Agent noch im Benutzer Einstellungen Bearbeiten sichtbar.
In der Sysconfig schaut es so aus:
Siehe Anlage:-)
Sorry wenn ich mich so doof anstelle.
Grüße Matthias
You do not have the required permissions to view the files attached to this post.
-
- Znuny newbie
- Posts: 8
- Joined: 24 Feb 2021, 14:00
- Znuny Version: 6.x
- Real Name: Matthias Kunz
- Company: Gesundheitswelt AG
Re: OTRS - Agent - Weitere Felder (Abteilung, Firma, ...) hinzufügen
Hallo zusammen,
ich habe es hinbekommen... mit folgender Konfiguration:
Merci für Eure Unterstützung!
Lieben Dank noch mal.
Matthias Kunz
ich habe es hinbekommen... mit folgender Konfiguration:
Merci für Eure Unterstützung!
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Config">
<Setting Name="PreferencesGroups###AgentenInformationenFullname" Required="0" Valid="1">
<Description Translatable="1">UserFullName</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">User Fullname</Item>
<Item Key="Key" Translatable="1">UserFullName</Item>
<Item Key="Block">Input</Item>
<Item Key="PrefKey">UserFullName</Item>
<Item Key="Data">[% Env("UserFullName") %]</Item>
<Item Key="Prio">3510</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###UserCompany" Required="0" Valid="1">
<Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">UserCompany</Item>
<Item Key="Key" Translatable="1">UserCompany</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserCompany"}</Item>
<Item Key="PrefKey">UserCompany</Item>
<Item Key="Prio">3511</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###UserCompanyStreet" Required="0" Valid="1">
<Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">UserCompanyStreet</Item>
<Item Key="Key" Translatable="1">UserCompanyStreet</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserCompanyStreet"}</Item>
<Item Key="PrefKey">UserCompanyStreet</Item>
<Item Key="Prio">3512</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###UserCompanyZip" Required="0" Valid="1">
<Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">UserCompanyZip</Item>
<Item Key="Key" Translatable="1">UserCompanyZip</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserCompanyZip"}</Item>
<Item Key="PrefKey">UserCompanyZip</Item>
<Item Key="Prio">3513</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###UserCompanyTown" Required="0" Valid="1">
<Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">UserCompanyTown</Item>
<Item Key="Key" Translatable="1">UserCompanyTown</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserCompanyTown"}</Item>
<Item Key="PrefKey">UserCompanyTown</Item>
<Item Key="Prio">3514</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###AgentenInformationenAbteilung" Required="0" Valid="1">
<Description Translatable="1">UserAbteilung</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">User Abteilung</Item>
<Item Key="Key" Translatable="1">UserAbteilung</Item>
<Item Key="Block">Input</Item>
<Item Key="PrefKey">UserAbteilung</Item>
<Item Key="Data">[% Env("UserAbteilung") %]</Item>
<Item Key="Prio">3516</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###AgentenInformationenTelefon" Required="0" Valid="1">
<Description Translatable="1">UserTelefon</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">UserTelefon</Item>
<Item Key="Key" Translatable="1">UserTelefon</Item>
<Item Key="Block">Input</Item>
<Item Key="PrefKey">UserTelefon</Item>
<Item Key="Data">[% Env("UserTelefon") %]</Item>
<Item Key="Prio">3517</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PreferencesGroups###AgentenInformationenFax" Required="0" Valid="1">
<Description Translatable="1">UserFax</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">UserFax</Item>
<Item Key="Key" Translatable="1">UserFax</Item>
<Item Key="Block">Input</Item>
<Item Key="PrefKey">UserFax</Item>
<Item Key="Data">[% Env("UserFax") %]</Item>
<Item Key="Prio">3518</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
</otrs_config>
Lieben Dank noch mal.
Matthias Kunz