Outdated documentation

You are looking at the documentation for an older release. For the latest information, please see current release documentation.

Administrator Interface

This package has no administrator interface, but extends the web service with new operations.

See also

In order to use this feature, a new web service has to be configured in the Web Services screen of the administrator interface.

The main feature of this package is to extend the OTRS generic interface that enables OTRS to accept requests from external systems to interact with the link object.

Each operation requires a valid agent user login name and a password or a session ID. This session ID can be obtained using the SessionCreate operation from session connector that is available by default in OTRS.

This package includes the following generic interface operations.

Link::LinkAdd
This operation is used to create a link between two objects.
Link::LinkDelete
This operation is used to remove a link between two objects.
Link::LinkDeleteAll
This operation is used to remove all link of an object.
Link::LinkList
This operation shows all links of an object, optionally restricted by another object, link type and link direction.
Link::PossibleLinkList
This operation shows all possible link types between objects that are registered in the OTRS system.
Link::PossibleObjectsList
This operation shows all objects that can be used for linking.
Link::PossibleTypesList
This operation shows all possible link types between two given objects.

Due to the nature of the generic interface and the operations included in this package an external software is needed to send the requests to the OTRS system.

For testing we recommend the use of:

  • OTRS Perl SOAP Requester script: some of the variables in this script such as URL, NameSpace and Operation will need to be changed to match the current web service, the operation to be executed and the data to be sent.
  • SoapUI by SMARTBEAR: this is an open source software designed to test web services using SOAP messages.

Usage

The link object feature provides functionality to link items (e.g. tickets, changes) from objects (e.g. Ticket, ITSMChangeManagement) in order to provide a logical connection.

To make easier to read and understand these requests here are some SOAP request templates showing the parameters for each operation.

Examples

The following examples use all objects and types that are available in OTRS using the default configuration. If you have changed the link default configurations, the examples might have to be modified.

Show All Possible Objects

This example will show all objects that can be linked to a given object, using the Link::PossibleObjectsList generic interface operation.

  1. Send the following SOAP request to the OTRS system.

    <RootElement>
        <UserLogin>johnsmith</UserLogin>
        <Password>Secret123</Password>
        <Object>Ticket</Object>
    </RootElement>
    
  2. The server response should be something similar to this one.

    <namesp1:RootElementResponse>
        <PossibleObject>Ticket</PossibleObject>
    </namesp1:RootElementResponse>
    

Show All Possible Types

This example will show all link types between two given objects, using the Link::PossibleTypesList generic interface operation.

  1. Send the following SOAP request to the OTRS system.

    <RootElement>
        <UserLogin>johnsmith</UserLogin>
        <Password>Secret123</Password>
        <Object1>Ticket</Object1>
        <Object2>Ticket</Object2>
    </RootElement>
    
  2. The server response should be something similar to this one.

    <namesp1:RootElementResponse>
        <PossibleType>Normal</PossibleType>
        <PossibleType>ParentChild</PossibleType>
    </namesp1:RootElementResponse>