Skip to main content
Ctrl+K

Znuny documentation

API Reference

  • Kernel
    • Language
    • Config
      • Defaults
    • GenericInterface
      • Debugger
      • Invoker
      • Mapping
      • Operation
      • Provider
      • Requester
      • Transport
      • Event
        • Handler
        • Validation
          • ValidateDemo
      • Invoker
        • Generic
          • Tunnel
        • Test
          • Test
          • TestSimple
          • DynamicFieldWebservice
            • TestGet
            • TestSearch
        • Ticket
          • Generic
      • Mapping
        • OutOfOffice
        • Simple
        • Test
        • XSLT
        • Znuny
      • Operation
        • Common
        • Session
          • Common
          • SessionCreate
          • SessionGet
          • SessionRemove
        • Test
          • Test
        • Ticket
          • Common
          • TicketCreate
          • TicketGet
          • TicketHistoryGet
          • TicketSearch
          • TicketUpdate
          • TimeAccountingGet
        • User
          • OutOfOffice
      • Transport
        • HTTP
          • REST
          • SOAP
          • Test
    • Modules
      • Activity
      • AdminGenericInterfaceErrorHandlingDefault
      • AdminGenericInterfaceErrorHandlingRequestRetry
      • AdminSystemFiles
      • AgentCustomerUserAddressBook
      • AgentTicketZoom
    • Output
      • CSS
        • Base
        • Priority
        • State
      • HTML
        • Base
        • Layout
        • SysConfig
        • Article
          • Base
          • Chat
          • Invalid
          • MIMEBase
        • Dashboard
          • Base
          • CustomerIDList
          • CustomerUserList
          • TicketGeneric
        • Layout
          • AJAX
          • Article
          • CSS
          • ColorPicker
          • CustomerUser
          • Datepicker
          • LinkObject
          • Loader
          • OutputFilter
          • Popup
          • Template
          • Ticket
        • LinkObject
          • Appointment
          • Ticket
        • Statistics
          • View
        • TicketBulk
          • Base
        • TicketOverview
          • Small
        • TicketZoom
          • Agent
            • Base
            • Invalid
            • MIMEBase
          • Customer
            • Base
            • Invalid
            • MIMEBase
      • Template
        • Document
        • Provider
        • Plugin
          • OTRS
    • System
      • Activity
      • AsynchronousExecutor
      • Auth
      • AuthSession
      • AutoResponse
      • Autocompletion
      • CSV
      • Cache
      • Calendar
      • CalendarEvents
      • CalendarTemplateGenerator
      • CheckItem
      • CommunicationChannel
      • CommunicationLog
      • CronEvent
      • CustomerAuth
      • CustomerCompany
      • CustomerGroup
      • CustomerUser
      • DB
      • DBCRUD
      • DateTime
      • Diff
      • DynamicField
      • DynamicFieldValue
      • Email
      • EmailParser
      • Encode
      • Environment
      • Event
      • EventHandler
      • Excel
      • FetchMail
      • FileTemp
      • GenericAgent
      • Group
      • HTMLUtils
      • JSON
      • JSONWebToken
      • LastViews
      • LinkObject
      • Loader
      • Lock
      • Log
      • MailAccount
      • MailQueue
      • Main
      • Mention
      • NotificationEvent
      • OAuth2Token
      • OAuth2TokenConfig
      • ObjectManager
      • PDF
      • PID
      • Package
      • PostMaster
      • Priority
      • Queue
      • ReferenceData
      • SLA
      • Salutation
      • Scheduler
      • SearchProfile
      • Service
      • Signature
      • StandardTemplate
      • State
      • Stats
      • StdAttachment
      • Storable
      • SupportBundleGenerator
      • SupportDataCollector
      • SysConfig
      • SystemAddress
      • SystemData
      • SystemMaintenance
      • TemplateGenerator
      • Ticket
      • TicketAttributeRelations
      • Time
      • TimeAccountingWebservice
      • Type
      • UnitTest
      • User
      • Util
      • Valid
      • VariableCheck
      • VirtualFS
      • WebUserAgent
      • X509Certificate
      • XML
      • YAML
      • ZnunyHelper
      • ACL
        • DB
          • ACL
      • Autocompletion
        • Base
        • Example
        • Template
      • Calendar
        • Appointment
        • Plugin
        • Event
          • Transport
            • Activity
            • Base
            • Email
        • Export
          • ICal
        • Import
          • ICal
        • Plugin
          • Base
          • Ticket
            • Create
            • Link
        • Ticket
          • DynamicField
          • EscalationTime
          • PendingTime
      • CalendarEvents
        • ICS
      • CommunicationChannel
        • Base
        • Chat
        • Email
        • Internal
        • Phone
      • CommunicationLog
        • DB
        • Transport
          • Email
      • Console
        • BaseCommand
        • InterfaceConsole
        • Command
          • List
      • Crypt
        • PGP
        • SMIME
      • DBCRUD
        • Format
        • History
        • Format
          • CSV
          • Excel
          • YAML
      • Daemon
        • BaseDaemon
        • SchedulerDB
        • DaemonModules
          • BaseTaskWorker
          • SchedulerCronTaskManager
          • SchedulerFutureTaskManager
          • SchedulerGenericAgentTaskManager
          • SchedulerTaskWorker
          • SystemConfigurationSyncManager
          • SchedulerTaskWorker
            • AsynchronousExecutor
            • CalendarAppointment
            • Cron
            • GenericAgent
            • GenericInterface
      • DynamicField
        • Backend
        • ScreenConfiguration
        • Webservice
        • Driver
          • Base
          • Checkbox
          • Date
          • DateTime
          • Dropdown
          • Multiselect
          • Text
          • TextArea
          • ProcessManagement
            • ActivityID
            • ProcessID
        • ObjectType
          • Article
          • CustomerCompany
          • CustomerUser
          • Ticket
        • Webservice
          • Base
          • DirectRequest
          • ResponseValues
      • GenericInterface
        • DebugLog
        • Webservice
        • WebserviceHistory
      • LinkObject
        • Appointment
        • Ticket
      • PostMaster
        • Filter
      • ProcessManagement
        • Activity
        • ActivityDialog
        • Process
        • Transition
        • TransitionAction
        • DB
          • Activity
          • ActivityDialog
          • Entity
          • Process
          • Transition
          • TransitionAction
          • Process
            • State
        • TransitionAction
          • AppointmentCreate
          • AppointmentRemove
          • AppointmentUpdate
          • ArticleSend
          • Base
          • ConfigItemUpdate
          • DynamicFieldIncrement
          • DynamicFieldPendingTimeSet
          • DynamicFieldRemove
          • DynamicFieldSet
          • ExecuteInvoker
          • LinkAdd
          • TicketArticleCreate
          • TicketCreate
          • TicketCustomerSet
          • TicketLockSet
          • TicketOwnerSet
          • TicketPrioritySet
          • TicketQueueSet
          • TicketResponsibleSet
          • TicketSLASet
          • TicketServiceSet
          • TicketStateSet
          • TicketTitleSet
          • TicketTypeSet
          • TicketWatchSet
        • TransitionValidation
          • Base
          • Contains
          • Equal
          • GreaterThan
          • GreaterThanOrEqual
          • LessThan
          • LessThanOrEqual
          • Module
          • NotContains
          • NotEqual
          • Regexp
          • String
          • ValidateDemo
      • SysConfig
        • BaseValueType
        • DB
        • Migration
        • XML
        • Base
          • Framework
        • ValueType
          • Checkbox
          • Date
          • DateTime
          • Directory
          • Entity
          • File
          • FrontendNavigation
          • FrontendRegistration
          • Password
          • PerlModule
          • Select
          • String
          • Textarea
          • TimeZone
          • VacationDays
          • VacationDaysOneTime
          • WorkingHours
          • YAML
          • Entity
            • DynamicField
            • Group
            • Priority
            • Queue
            • Role
            • SLA
            • Service
            • State
            • SystemAddress
            • Type
            • User
            • Valid
            • Webservice
      • Ticket
        • Article
        • ColumnFilter
        • NumberBase
        • TicketACL
        • TicketSearch
        • Article
          • Backend
            • Base
            • Chat
            • Email
            • Invalid
            • MIMEBase
            • MIMEBase
              • Base
        • Event
          • TicketAllChildrenClosed
          • NotificationEvent
            • Transport
              • Activity
              • Base
              • Email
              • Webservice
      • UnitTest
        • DBCRUD
        • Driver
        • Email
        • Helper
        • ITSMConfigItem
        • Param
        • Scheduler
        • Selenium
        • TicketToUnitTest
        • WebUserAgent
        • Webservice
        • Selenium
          • WebElement
      • Web
        • InterfaceAgent
        • InterfaceCustomer
        • InterfaceInstaller
        • InterfacePublic
        • Request
        • UploadCache
      • XML
        • Simple
  • .rst

Link

Contents

  • NAME
  • DESCRIPTION
  • PUBLIC INTERFACE
    • new()
    • RenderOutput()
    • Update()
    • Get()
    • LinkAdd()
    • LinkList()
    • LinkDelete()
    • Search()

Link#

NAME#

Kernel::System::Calendar::Plugin::Ticket::Link - Ticket::Link 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 $TicketLinkPluginObject = $Kernel::OM->Get('Kernel::System::Calendar::Plugin::Ticket::Link');

RenderOutput()#

renders the output as html.

my $HTML = $TicketLinkPluginObject->RenderOutput(
    Param           => \%Param,
    GetParam        => \%GetParam,
    Appointment     => \%Appointment,
    Plugin          => \%Plugin,
    PermissionLevel => $PermissionLevel{$Permissions},
    UserID          => $Self->{UserID},
);

Returns:

my $HTML = 'HTML';

Update()#

updated accordingly as needed.

my $Success = $TicketLinkPluginObject->Update(
    UserID => 123,
);

Returns:

my $Success = 1;

Get()#

Get all plugin information.

my $Data = $TicketLinkPluginObject->Get(
    GetParam    => \%GetParam,
    Appointment => \%Appointment,
    Plugin      => \%Plugin,
    UserID      => $Self->{UserID},
);

Returns:

my $Data = {};

LinkAdd()#

adds a link from an appointment to the ticket

my $Success = $TicketLinkPluginObject->LinkAdd(
    TargetKey => 42,    # TicketID
    SourceKey => 1,     # AppointmentID
    UserID    => 1,
);

LinkList()#

returns a hash of linked tickets to an appointment

my $Success = $TicketLinkPluginObject->LinkList(
    AppointmentID => 123,
    UserID        => 1,
    URL           => 'http://znuny.local/index.pl?Action=AgentTicketZoom;TicketID=%s' # optional
);

LinkDelete()#

Deletes all linked tickets.

my $Success = $TicketLinkPluginObject->LinkDelete(
    AppointmentID => 1,
    UserID        => 1,
);

Returns:

my $Success = 1;

Search()#

search for ticket and return a hash of found tickets

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

    UserID => 1,
);

previous

Create

next

Ticket

Contents
  • NAME
  • DESCRIPTION
  • PUBLIC INTERFACE
    • new()
    • RenderOutput()
    • Update()
    • Get()
    • LinkAdd()
    • LinkList()
    • LinkDelete()
    • Search()

By The Znuny Community and Team

© Copyright 2021-2025, Znuny Project.