Search on fields in CI

Moderator: crythias

Post Reply
vkandersv
Znuny newbie
Posts: 36
Joined: 07 Mar 2011, 18:32
Znuny Version: 3.0.6

Search on fields in CI

Post by vkandersv »

We have just started to look into Configuration Items, and have come to the part when we want to link tickets to some item, i cant really figure out how to search on more than just the four standard fields when linking. Is it possible without tweaking source? What i need to search are some free text fields that might contain other information (such as notes, fields we manually entered like department for the computer and so on)
--
ORTS 3.0.6, Linux, MySQL, ActiveDirectory integration for Customer.
shaned123
Znuny newbie
Posts: 25
Joined: 30 Nov 2010, 20:34
Znuny Version: 2.4

Re: Search on fields in CI

Post by shaned123 »

I am also looking for a similar solution. I have need to be able to link 'Tickets' to Computer CIs and search/filter for CIs by the SerialNumber attribute. I was able to add the SerialNumber text field to the Link Object pop up by modifying the /opt/otrs/Kernel/Output/HTML/LinkObjectITSMConfigItem.pm file. The problem I have run into is linking the new field to the database. The code update below makes the visual update to the Link Object form but the search function ignores the request and returns all 'Computers' in the search results.

Does anyone have the solution to tie the new field to the database?

Code: Select all

sub SearchOptionList {
    my ( $Self, %Param ) = @_;

    # search option list
    my @SearchOptionList = (
        {
            Key  => 'Number',
            Name => 'ConfigItem#',
            Type => 'Text',
        },
        {
            Key  => 'SerialNumber',
            Name => 'Serial Number',
            Type => 'Text',
        },
        {
            Key  => 'Name',
            Name => 'Name',
            Type => 'Text',
        },
        {
            Key  => 'DeplStateIDs',
            Name => 'Deployment State',
            Type => 'List',
        },
        {
            Key  => 'InciStateIDs',
            Name => 'Incident State',
            Type => 'List',
        },
    );
Post Reply