Search on fields in CI
Moderator: crythias
Search on fields in CI
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.
ORTS 3.0.6, Linux, MySQL, ActiveDirectory integration for Customer.
Re: Search on fields in CI
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?
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',
},
);