Configure the REST Interface

To configure which fields are editable in the "Create Issue" dialog, do the following as OTRS administrator:

  1. In the OTRS dashboard, select the Admin tab.
  2. In the Admin tab, select System Configuration in the "Administration" section.

    The "System Configuration" dialog appears.
  3. In the "Navigation" section in the sidebar on the left, select Jira > Core > REST.

    The related settings are displayed on the right.
  4. Select Core:REST in the list of search results.
    A list of settings is displayed. In this dialog, you can configure the following:

    ParameterDescription

    JIRA::ArticleFormat

    Format for article content that is sent to Jira. Example:

    From: [% Data.From %]
    To: [% Data.To %]
    Date: [% Data.Created %]
    Type: [% Data.Type %]
    Subject: [% Data.Subject %]
    --------
    [% Data.Body %]

    By default the format is:

    [% Data.From %] / [% Data.To %]
    [% Data.Body %]
    JIRA::CacheTTLEnter the time to live for the cache.
    JIRA::NoAssigneeEnable if you do not want to send the assignee to Jira.

    JIRA::OTRSTicketIDField

    For OTRS 4 or newer, the custom field ID of the "OTRSTicketID" field has to be set.
    JIRA::ProjectBlacklistActivate black-listing for projects using regular expressions. Only project keys that matches at least one of those regular expressions are excluded from the project drop-down.
    JIRA::ProjectWhitelistActivate white-listing for projects using regular expressions. Only project keys that matches at least one of those regular expressions are shown in the project dropdown (Jira dialog).
    JIRA::SSLVerifySelect if you want to verify hostname for SSL connections.
    TicketJIRA###AssigneeEnter the name of the Jira user who will become the first issue assignee.
    TicketJIRA###IncomingUser

    Enter the name of the OTRS user the Jira app uses for authentication at OTRS.

    You have to create this user on the OTRS server. He must have the "Create Issue" and "Assignable User" permission.

    This parameter is required for breaking update loops.

    TicketJIRA###IssueTypeEnter a Jira issue type being used for automated issue creation.
    TicketJIRA###JIRA-DateFormatEnter the used date and date format. (Typically you will not change it here.)

    TicketJIRA###JIRA-DateTimeFormat

    Enter the used date and date/time format. (Typically you will not change it here.)
    TicketJIRA###OTRS-JIRA-FieldMapping

    Enter the field mapping as key/content pairs:

    • You can use standard fields, dynamic fields as well as a functional mapping to copy them to corresponding Jira issue fields.
    • Make sure that mapped fields are type conform. The connector does not support error handling on wrong types up to now.
    • Options fields are mapped on a key base. Make sure the keys are available in Jira.
    • To transform date fields, make sure that the Jira user being used for system login has English chosen as the preferred language.
    • You can also override the project, issue type or assignee by specifying them on the right hand side. For example:

      • std:summary
      • std:description
      • std:project:key or std:project:id
      • std:issuetype:name or std:issuetype:id
      • std:priority:name or std:priority:id
      • std:reporter:name
      • std:assignee:name
      • cust:<YourCustomFieldName>

    For complex mapping, functions have to be implemented separately, see the demo package under Downloads.

    TicketJIRA###OTRSTicketAllowCreationInAllQueuesEnable to allow manual issue creation in all queues.
    TicketJIRA###OTRSTicketAllowedQueues4CreateThe names of the OTRS Ticket queues that allow the creation of a Jira issue.

    TicketJIRA###OTRSTicketAllowedStates4Close

    Enter a list of OTRS ticket states for closing a Jira issue via an update ticket event in conjunction with the specified workflow transition

    TicketJIRA###OTRSTicketAllowedStates4Update

    Enter a list of OTRS ticket states triggering synchronization of linked Jira issues on update.

    TicketJIRA###OTRSTicketStatesEnforcingCreate

    Enter the names of the states in OTRS for which a Jira issue is automatically created.

    This parameter replaces TicketJIRA###OTRSTicketAllowedStates4Create from previous versions. Settings are overwritten when updating!

    The automation is active even it the queue is not visible for the user.

    TicketJIRA###Password

    Enter the password of the Jira user being used for system login.
    TicketJIRA###PathEnter the path of the REST API.

    Enter a Jira project where new newly created issues will be located.

    TicketJIRA###Reporter

    Enter the name of the Jira user who will become the issue reporter when creating Jira issues from OTRS tickets automatically.
    TicketJIRA###URLEnter the Jira base URL.
    TicketJIRA###User

    Enter the name of the Jira user being used for system login.

    You have to create this user and assign him the project administrator role in Jira. He must have the "Create Issue" and "Assignable User" permission.

    This user must also be specified in the "Special User" parameter in the app configuration on your Jira server.

    TicketJIRA###WorkflowCloseActionNameEnter a Jira workflow transition which will be used for closing an issue, when closing the linked OTRS ticket.
  5. Click Update to activate your changes.