NAME
Kernel::System::ProcessManagement::Modules::ITSMConfigItemDataPush – A module to insert data to a linked ITSM configuration items.
DESCRIPTION
All ITSMConfigItemDataPush functions.
PUBLIC INTERFACE
new()
Don't use the constructor directly, use the ObjectManager instead:
my $ITSMConfigItemDataPushObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::Modules::ITSMConfigItemDataPush');
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 items where the data will be pushed,
# * Value is the value is the value to be set, supporting smart tags <OTRS_TICKET_*> from the current process ticket e.g.
#
# Example:
# * To set linked ITSM configuration items first element of someDefinitionField::Sub to be exactly the process ticket QueueID:
# 'someDefinitionField::Sub::1' => '<OTRS_Ticket_QueueID>',
# Where 'Sub' is a sub field of 'someDefinitionField' field
# * To set linked ITSM configuration items second element of someDefinitionField2 to be the concatenation of
# some text and the content of the process ticket dynamic field ExternalField2:
# 'someDefinitionField2::2' => 'Some text <OTRS_Ticket_DynamicField_ExternalField2>',
# * To set linked ITSM configuration items last element of someDefinitionField::Sub to be an static text:
# 'someDefinitionField::Sub' => 'Some text',
}
);
- `Ticket` contains the result of TicketGet including DynamicFields.
