TimeAccountingGet

TimeAccountingGet#

NAME#

Kernel::GenericInterface::Operation::Ticket::TimeAccountingGet - GenericInterface Ticket Get Operation backend

PUBLIC INTERFACE#

new()#

Usually, you want to create an instance of this by using Kernel::GenericInterface::Operation->new();

Run()#

Perform TimeAccountingGet operation. This function is able to return one or more ticket entries in one call.

my $Result = $OperationObject->Run(
    Data => {
        UserLogin            => 'some agent login',                            # UserLogin or CustomerUserLogin or SessionID is
                                                                               #   required
        CustomerUserLogin    => 'some customer login',
        SessionID            => 123,

        Password             => 'some password',                               # if UserLogin or customerUserLogin is sent then
                                                                               #   Password is required

        TimeAccountingUserLogin => 'some agent login',
        TimeAccountingStart     => '2017-01-01 10:00:00',
        TimeAccountingEnd       => '2018-01-01 10:00:00',
    },
);

$Result = {
    Success      => 1,                                # 0 or 1
    ErrorMessage => '',                               # In case of an error
    Data         => [
        {
            TicketNumber => '...',
            TicketTitle  => '...',
            Queue        => '...',
            Created      => '...',
            TimeUnit     => '...',
        },
    ],
};