Kernel::System::Calendar::Plugin::Ticket

NAME

Kernel::System::Calendar::Plugin::Ticket – Ticket plugin

DESCRIPTION

Ticket appointment plugin.

PUBLIC INTERFACE

new()

create an object. Do not use it directly, instead use:

    use Kernel::System::ObjectManager;
    local $Kernel::OM = Kernel::System::ObjectManager->new();
    my $TicketPluginObject = $Kernel::OM->Get('Kernel::System::Calendar::Plugin::Ticket');

LinkAdd()

adds a link from an appointment to the ticket

    my $LinkID = $TicketPluginObject->LinkAdd(
        AppointmentID => 123,
        PluginData    => $TicketID,
        UserID        => 1,
    );

returns a hash of linked tickets to an appointment

    my $LinkList = $TicketPluginObject->LinkList(
        AppointmentID => 123,
        UserID        => 1,
    );

LinkListData()

Fetches the link list for an appointment and combine it with link data.

    my $LinkListData = $TicketPluginObject->LinkListData(
        AppointmentID => 123,
        UserID        => 1,
        PluginURL     => '/agent/ticket/%s',
    );

Returns an array ref of linked tickets to an appointment.

search for ticket and return a hash of found tickets

    my $ResultList = $TicketPluginObject->Search(
        Search   => '**',   # search by ticket number or title
                            # or
        ObjectID => 1,      # search by ticket ID (single result)

        UserID => 1,
    );
Scroll to Top