Kernel::System::ProcessManagement::Modules::TicketUpdateByLinkedCI

NAME

Kernel::System::ProcessManagement::Modules::TicketUpdateByLinkedCI – A module to set ticket attributes based on a linked configuration item.

DESCRIPTION

All TicketUpdateByLinkedCI functions.

PUBLIC INTERFACE

new()

Don't use the constructor directly, use the ObjectManager instead:

    my $TicketUpdateByLinkedCIObject = $Kernel::OM->Get(
        'Kernel::System::ProcessManagement::Modules::TicketUpdateByLinkedCI'
    );

Run()

    Run Data

    my $Success = $TicketUpdateByLinkedCIObject->Run(
        UserID                          => 123,
        Ticket                          => \%Ticket,                    # required
        ProcessEntityID                 => 'P123',
        ActivityEntityID                => 'A123',
        SequenceFlowEntityID            => 'T123',
        SequenceFlowActionEntityID      => 'TA123',
        Config  => {
            ConfigITSMConfigItemSearch => {
                ClassID                 => 123,                         # optional
                DeplStateIDs            => [123],                       # optional
                InciStateIDs            => [123],                       # optional
                LinkType                => 'someType::someDirection',   # optional
            },
            ConfigDropdown => {
                Behavior                => 'NoCopy',                    # 'CopyFirstLinked', 'CopyLastLinked'
            },
            'someDefinitionField::Sub'  => 'DynamicField_someName',     # example optional
            'someDefinitionField2'      => 'someTicketAttribute',       # example optional
            UserID                      => 123,                         # optional, to override the UserID from the logged user
        }
    );

    - `Ticket` contains the result of TicketGet including DynamicFields.
    - `Config` is the Config Hash stored in a Process::SequenceFlowAction's Config key.
Scroll to Top