Kernel::WebApp::Util::BusinessObject::Ticket

NAME

Kernel::WebApp::Util::BusinessObject::Ticket

DESCRIPTION

Handles the business object ticket stuff.

PUBLIC INTERFACE

Type()

Holds the type name of the current business object.

IdentifierKey()

Holds the identifier key for the ticket list entries.

Label()

Holds the label of the business object.

ExportAllLabel()

Holds the label for the export all checkbox.

DefaultSorting()

Holds the default sorting for the ticket lists.

ColumnTitles()

Holds the column titles for the ticket list columns.

SortableColumns()

Holds the sort-able columns for the table.

HasPopoverColumns()

Holds the columns which have a popover in the frontend.

TextTruncatableColumns()

Holds the columns which should the truncated in the frontend.

TranslatableColumns()

Holds the columns which should the translated in the frontend.

ClickableColumns()

Holds the columns which should the truncated in the frontend.

DynamicFieldObjectTypes()

Holds the dynamic field object types for the ticket business object.

CleanupVisibleColumns()

Filter out columns based on configuration options. e.g. Watch column should only be shown when the watch feature is enabled.

TransformActiveFilterValue()

Overrides's the original 'TransformActiveFilterValue' of the base class.

AdditionalViewConfigGet()

With this function you can add business object type specific configs to the detail view config.

AdditionalListConfigGet()

With this function you can add business object type specific configs to the list config.

ItemDetailDataGet()

Collects the detail data for the item with the given ItemID.

ItemDetailDataGetForExport()

Collects the detail data for the item with the given ItemID and transformed for the export.

ItemUpdateCheck()

Checks for updated and/or new tickets, based on given ticket id's, change times and additional parameters.

    my $UpdateCheckResult = $BusinessObjectTypeObject->ItemUpdateCheck(
        Parameters => {         # required, contains the list of ticket id's and change times to be checked.
            ItemIDs => [
                {
                    TicketID   => 123,
                    ChangeTime => "2019-05-09 09:13:23",
                },
                ...
            ],
        },
        SortBy => [             # optional, sorting parameters for the ticket search. Default of TicketSearch().
            {
                Column    => 'Created',
                Direction => 'Up',
            }
        ],
        ItemLimit         => 25,
        FetchDetailData   => 1,   # optional, returns detailed data of updated and/or removed tickets.
        CheckUserActivity => 1,   # optional, check the user activity for the items.
        UserID            => 123, # required, the user id to be used for the ticket search.
    );

Returns:

    {
        List => {
            Added   => [2],
            Removed => [3],
            RemovedDetail => {
                3 => {
                    Data => {
                        Age                    => 4608924,
                        ArchiveFlag            => "n",
                        ChangeBy               => 3,
                        Changed                => "2019-05-13 13:42:57",
                        CreateBy               => 1,
                        Created                => "2019-03-22 23:37:12",
                        CustomerID             => "886",
                        CustomerUserID         => "688@slow-company-example-service.com",
                        DynamicField_DFText    => 'Test text dynamic field content',
                        EscalationResponseTime => 0,
                        EscalationSolutionTime => 0,
                        EscalationTime         => 0,
                        EscalationUpdateTime   => 0,
                        GroupID                => 1,
                        Lock                   => "unlock",
                        LockID                 => 1,
                        Owner                  => "root@localhost",
                        OwnerID                => 1,
                        Priority               => "3 normal",
                        PriorityID             => 3,
                        Queue                  => "Postmaster",
                        QueueID                => 1,
                        RealTillTimeNotUsed    => 0,
                        Responsible            => "root@localhost",
                        ResponsibleID          => 1,
                        SLAID                  => "",
                        ServiceID              => "",
                        State                  => "new",
                        StateID                => 1,
                        StateType              => "new",
                        TicketID               => 3,
                        TicketNumber           => "2019032254000022",
                        Title                  => "Test title",
                        Type                   => "Unclassified",
                        TypeID                 => 1,
                        UnlockTimeout          => 0,
                        UntilTime              => 0,
                    },
                    Permission => 'rw',
                }
            },
            Updated       => [],
            UpdatedDetail => {}
        },
        ListUpdate    => 1,
        SortingUpdate => 1,
        TotalItems    => 9,
    }

FormSchemaPermanentConfigurationGet()

Added some more fields to the original 'FormSchemaPermanentConfigurationGet' form schema of the base class.

PRIVATE INTERFACE

_ProvideFilters()

Holds the available filter information (e.g. which form field type).

_InternalProvideFilters()

Holds the available internal filter information (without a form schema).

Scroll to Top