QueuePreferences

Juan Manuel Clavero Almirón <[email protected]>
Newsgroups gmane.comp.otrs.devel
Message-ID <4E6C4135180B424CBFC6C6DE9456154A48FBE17E@SCPDPSEXMB01P.ssib.local>
Hi all,
We want to add custom information about queues and I am testing to add it as Queue Preferences. I am using OTRS 3.1.8
I’ve done a silly script that adds a UserComment to a Queue (as in the API) and then retrieves this UserComment, as follows:

    $CommonObject{QueueObject}->QueuePreferencesSet(
        QueueID => 2,
        Key     => 'UserComment',
        Value   => 'some comment',
        UserID  => $UserIDOfGenericAgent,
    );
    my %QueueData = $CommonObject{QueueObject}->QueueGet(
        ID    => 2,
    );
    print Dumper(%QueueData);

But the QueueData that I get doesn't have the UserComment. I've checked that the UserComment is in QueuePreferences table. 

So I've gone to Kernel/System/Queue/PreferencesDB.pm and seen that sub QueuePreferencesGet returns in "check if queue preferences are available". And it's right, I've seen in Sysadmin that my only entry as QueuePreferences is Ticket -> Frontend::Queue::Preferences -> QueuePreferences###Comment2, which is not enabled.

So I enable this QueuePreferences###Comment2 and now I get the UserComment in QueueData!

Now, my question: What's the point of QueuePreferences Config if it doesn't have any relationship with the actual Queue Preferences that I added? I mean, I can bypass the Config check, but I want to understand why it's there...

Kind regards,
Juan Clavero


_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.