This is really simple. Create a file (otrs/Kernel/Config/Files/AgentPrefs-myfield.xml)
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="PreferencesGroups###MyField" Required="0" Valid="1">
<Description Translatable="1">A message that indicates what this field is for.</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">MyFieldName</Item>
<Item Key="Key" Translatable="1">MyFieldName</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserMyField"}</Item>
<Item Key="PrefKey">UserMyField</Item>
<Item Key="Prio">6100</Item>
<Item Key="Active">1</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>