Hello,
How to add fields for configuration items?
Thanks
Adding more fileds in Configuration items
Moderator: crythias
Re: Adding more fileds in Configuration items
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
Yeah thanks, It worked!
one more question, How make custom or default fields mandatory while creating new CI or ticket?
Thanks in Advance!
one more question, How make custom or default fields mandatory while creating new CI or ticket?
Thanks in Advance!
-
- 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
Required for CI's:
{
Key => 'OperatingSystem',
Name => 'Operating System',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 100,
Required => 1,
},
},
in CI definition
{
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)
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)
-
- 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
Oh yeah just figured out!
Thanks anyways..
Thanks anyways..

-
- 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
By the way where i can do the same thing for Tickets?
-
- 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
If you need to "Type", "Service", "SLA" in ticket form mandatory for customer fill you need to add in
Kernel/Modules/CustomerTicketMessage.pm line
for example for Type:
that the source:
with additional line:
Kernel/Modules/CustomerTicketMessage.pm line
Code: Select all
Class => "Validate_RequiredDropdown ",
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 .......................
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)
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)