ITSMConfigItemReference DynamicField constrictions examples

Moderator: crythias

Post Reply
User avatar
nedmaj
OTRS wizard
Posts: 157
Joined: 26 Nov 2014, 20:34
OTRS Version?: 5.0.17
Real Name: Samuel Casimiro
Company: CD
Contact:

ITSMConfigItemReference DynamicField constrictions examples

Post by nedmaj » 20 Apr 2017, 19:34

Hi,

I would like to share some examples on how to use the constrictions since this add-on documentation don't have any.

Example 1: Allow only CIs of type 82 and kind 3 (type and kind must be attributes of the CI class being used)

Code: Select all

Type::Configuration::82::1
Kind::Configuration::3::1
Example 2: Allow only CIs of type 82 and others with type empy

Code: Select all

Type::Configuration::82::0
Tip:

In Kernel::Modules::DynamicFieldITSMConfigItemAJAXHandler (create a copy and save in Custom folder) add/change the following lines to use a list of possible values of the same attribute.

532:

Code: Select all

my @Values = split ',', $Values;
535:

Code: Select all

my $SearchHash = {
   '[1]{\'Version\'}[1]{\''
      . $SearchKey
      . '\'}[%]{\'Content\'}' => \@Values,
};
After that you can use a list of values.

Example 3:

Type::Configuration::78,82::1

Hope it helps!
Samuel

OTRS 5.0.17 | OTRS::ITSM 5.0.17
OS: CentOS 6.5 | Database: Oracle 12.1
Reporting: Pentaho | DW Database: PostgreSQL
User database and auth module: LDAP (Active Directory)
Mail server: Microsoft Exchange | Sendmail module: Sendmail
3rd party packages: Yes | SSL: Yes
Number of agents: 450 | Number of customers: 20000 | Number of CIs: 30000

skullz
OTRS wizard
Posts: 163
Joined: 24 Feb 2012, 03:58
OTRS Version?: OTRS 6

Re: ITSMConfigItemReference DynamicField constrictions examples

Post by skullz » 18 Feb 2019, 14:20

Hi,

it is possible to use this constrictions based on customer user ?
The dynamic field will be able populate all the CI linked with selected customer user ? the key will be the "Owner" field

thanks

Post Reply