Agent specific signatures

Nils Leideck05. Sep 2011 | Modifications & Packages

To define signatures with agent specific details like role title or mobile number, an OTRS administrator can just add a few lines of SysConfig to provide a new agent preference that can be filled with values by the particular agent or the administrator.

The easiest way is to setup a new own configuration in Kernel/Config/Files/
For my example I will use the filename MyConfig.xml

The content of this file is simple:

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
    <ConfigItem Name="PreferencesGroups###PersonalPhoneNumber" Required="0" Valid="0">
        <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>

Rebuilding the SysConfig (just open the SysConfig using the admin area) generates a new SysConfig entry in Framework -> Frontend::Agent::Preferences calles PersonalPhoneNumber.

This field needs to be activated and adds a new preference item to the agent preferences page.
The value will be stored in the table user_preferences and is available in signatures with the common OTRS tags like .

Enjoy!
Cheers, Nils

#8
Robert Ullrich at 19.07.2018, 08:46

Hi Snowman, because of code changes etc. etc. this will not work in OTRS6. Cheers Robert

#7
Snowman at 10.07.2018, 12:26

Anyone know if this works also in OTRS6 ? I can't get it working. Thanks

#6
Timo at 01.06.2016, 20:10

Hi, for anyone who is interested. This line has to be corrected since OTRS 5: Kernel::Output::HTML::PreferencesGeneric The correct value needs to be Kernel::Output::HTML::Preferences::Generic This is due to the fact that the kernel module folder structure has changed a little

#5
Adam at 31.08.2015, 13:03

In the Agent setup/configuration screen there is a Title field. It is only visible to admin. How do I add this field as I did with dynamic ones to the user/agent preferences screen so Agents can edit this field on their own? Kind regards

#4
Mario at 20.01.2015, 11:45

Thanks a lot. You don't forget to put the user and group authoritations in order ( PUT SIMILARS) with the others in the path.

#3
Jens at 17.06.2014, 21:28

The Tag depends on the one you used in the config

#2
Klaus at 02.06.2014, 18:11

Hi, you tell me what is the tag?

#1
marco at 12.09.2011, 15:38

Thank you Nils !

Your email address will not be published. Required fields are marked *

This site uses cookies. By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close