Linking Dynamic fields to the Service and SLA forms

Moderator: crythias

Post Reply
cbruigom
Znuny newbie
Posts: 36
Joined: 17 Apr 2014, 23:38
Znuny Version: 3.3.5
Real Name: Clinton

Linking Dynamic fields to the Service and SLA forms

Post by cbruigom »

Hi All,

Is it possible to add dynamic fields to either the SLA or service forms. This is in cases were additional service attributes need to be captured for both. I dont see anywhere in the sysconfig where you can do this.

Hoping someone has done it before!

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

Re: Linking Dynamic fields to the Service and SLA forms

Post by jojo »

can you please explain exactly which forms you are reffering to
"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
cbruigom
Znuny newbie
Posts: 36
Joined: 17 Apr 2014, 23:38
Znuny Version: 3.3.5
Real Name: Clinton

Re: Linking Dynamic fields to the Service and SLA forms

Post by cbruigom »

Hi Jojo,

Apologies.. It would be the new or "zoom" of both the service and SLA forms, so on the Service side:
New:
Action=AdminService;Subaction=ServiceEdit;ServiceID=NEW
Zoom:
Action=AgentITSMService

SLA
New:
Action=AdminSLA;Subaction=SLAEdit
Zoom:
Action=AgentITSMSLA
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Linking Dynamic fields to the Service and SLA forms

Post by jojo »

you can add Service and SLA preferences.

Example (Config.pm)

Code: Select all

$Self->{'ServicePreferences'}->{'Comment2'} =  {
  'Block' => 'TextArea',
  'Cols' => '50',
  'Desc' => 'Define the service comment 2.',
  'Label' => 'Comment2',
  'Module' => 'Kernel::Output::HTML::ServicePreferencesGeneric',
  'PrefKey' => 'Comment2',
  'Rows' => '5'
};
At least one can be done via Sysconfig out of the box
"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
cbruigom
Znuny newbie
Posts: 36
Joined: 17 Apr 2014, 23:38
Znuny Version: 3.3.5
Real Name: Clinton

Re: Linking Dynamic fields to the Service and SLA forms

Post by cbruigom »

Thanks for this Jojo, that works for adding a new service which is half of what I need. How can we get the new comment field to display on the services view, so that when we select a service we can see these additional preferences?

Is similar capability available for the SLA side?

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

Re: Linking Dynamic fields to the Service and SLA forms

Post by jojo »

The same is available for SLA. To show the data in the Overviews you would also need to make some changes in the Template and Module.
"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
Post Reply