Adding more fileds in Configuration items

Moderator: crythias

Locked
DCO
Znuny newbie
Posts: 28
Joined: 18 Sep 2012, 10:05
Znuny Version: 3.1.10
Real Name: DCO
Company: EGOV

Adding more fileds in Configuration items

Post by DCO »

Hello,

How to add fields for configuration items?

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Adding more fileds in Configuration items

Post by jojo »

you need to change th definition via admin interface
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
DCO
Znuny newbie
Posts: 28
Joined: 18 Sep 2012, 10:05
Znuny Version: 3.1.10
Real Name: DCO
Company: EGOV

Re: Adding more fileds in Configuration items

Post by DCO »

Yeah thanks, It worked!

one more question, How make custom or default fields mandatory while creating new CI or ticket?

Thanks in Advance!
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Adding more fileds in Configuration items

Post by yuri0001 »

Required for CI's:
{
Key => 'OperatingSystem',
Name => 'Operating System',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 100,
Required => 1,
},
},
in CI definition
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
DCO
Znuny newbie
Posts: 28
Joined: 18 Sep 2012, 10:05
Znuny Version: 3.1.10
Real Name: DCO
Company: EGOV

Re: Adding more fileds in Configuration items

Post by DCO »

Oh yeah just figured out!

Thanks anyways.. :)
DCO
Znuny newbie
Posts: 28
Joined: 18 Sep 2012, 10:05
Znuny Version: 3.1.10
Real Name: DCO
Company: EGOV

Re: Adding more fileds in Configuration items

Post by DCO »

By the way where i can do the same thing for Tickets?
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Adding more fileds in Configuration items

Post by yuri0001 »

If you need to "Type", "Service", "SLA" in ticket form mandatory for customer fill you need to add in
Kernel/Modules/CustomerTicketMessage.pm line

Code: Select all

    Class        => "Validate_RequiredDropdown ",
for example for Type:
that the source:

Code: Select all

# types
    ....................... Cut .......................
        $Param{TypeStrg} = $Self->{LayoutObject}->BuildSelection(
            Data         => \%Type,
            Name         => 'TypeID',
            SelectedID   => $Param{TypeID},
            PossibleNone => 1,
            Sort         => 'AlphanumericValue',
            Translation  => 0,
    );
    ....................... Cut .......................
with additional line:

Code: Select all

# types
     ....................... Cut .......................
        $Param{TypeStrg} = $Self->{LayoutObject}->BuildSelection(
            Data         => \%Type,
            Name         => 'TypeID',
            SelectedID   => $Param{TypeID},
            PossibleNone => 1,
            Sort         => 'AlphanumericValue',
            Translation  => 0,
            Class        => "Validate_RequiredDropdown ",
    );
     ....................... Cut .......................
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Locked