NAME
Kernel::System::ProcessManagement::Modules::ITSMConfigItemDataPull – A module to fetch data from a linked ITSM configuration item.
DESCRIPTION
All ITSMConfigItemDataPull functions.
PUBLIC INTERFACE
new()
Don't use the constructor directly, use the ObjectManager instead:
my $ITSMConfigItemDataPullObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::Modules::ITSMConfigItemDataPull');
Run()
Run Data
my $Success = $ITSMConfigItemDataPullObject->Run(
UserID => 123,
Ticket => \%Ticket, # required
ProcessEntityID => 'P123',
ActivityEntityID => 'A123',
SequenceFlowEntityID => 'T123',
SequenceFlowActionEntityID => 'TA123',
Config => {
ConfigITSMConfigItemSearch => {
ClassIDs => [9, 8, 7, 6], # (optional)
DeplStateIDs => [1, 2, 3, 4], # (optional)
InciStateIDs => [1, 2, 3, 4], # (optional)
LinkType => 'RelevantTo::Source', # (optional)
},
ConfigSearchKeyValueList => {
Name => 'The Name', # (optional)
# configuration items with created time after ...
ConfigItemCreateTimeNewerDate => '2006-01-09 00:00:01', # (optional)
# configuration items with created time before then ....
ConfigItemCreateTimeOlderDate => '2006-01-19 23:59:59', # (optional)
# configuration items with changed time after ...
ConfigItemChangeTimeNewerDate => '2006-01-09 00:00:01', # (optional)
# configuration items with changed time before then ....
ConfigItemChangeTimeOlderDate => '2006-01-19 23:59:59', # (optional)
# XML attributes (defined by class)
'ElementA::ElementB' => '%contentA%',
'ElementA::ElementB' => '%contentC%,%contentD%,%contentE%,
}.
UserID => 123, # optional,to override the UserID from the logged user
ConfigDropdown => {
Behavior => 'NoCopy', # 'NoCopy', 'CopyFirstLinked' or 'CopyLastLinked' only
},
UserID => 123, # optional,to override the UserID from the logged user
# Value set:
# * Key is the attribute of the linked ITSM configuration item where the data will be set,
# * Value is the value is the value to be set, supporting smart tags <OTRS_ITSMCI_*> from the resulting linked
# configuration item after match and behavior filters
#
# Example:
# * To set process ticket title to be exactly the linked configuration item first element of field someDefinitionField::Sub
# Title => '<OTRS_ITSMCI_someDefinitionField::Sub::1>',
# where 'Sub' is a sub field of field 'someDefinitionField'
# * To set process ticket title to be exactly the linked configuration item second element of field someDefinitionField
# Title => '<OTRS_ITSMCI_someDefinitionField2::2>',
# * To set the process ticket dynamic field NameX to an static value (not real pull):
# DynamicField_NameX => 'someValue',
}
);
- `Ticket` contains the result of TicketGet including DynamicFields.
