Skip to content
Lynxwork

Lynxwork Jira OSLC Server - Installation and Usage Guide

The Lynxwork Jira OSLC Server is provided as a standard Web Application Archive (.war) file. It can be deployed in any compatible servlet container, such as Apache Tomcat or Eclipse Jetty. It can also be packaged and executed within a Docker container.

This guide describes how to deploy the application:

  • In a Docker container
  • In an Apache Tomcat environment

The software distribution includes the following files:

File Purpose
jira.war The deployable web application archive
lynxwork.lic The required license file
tomcat-context-template.xml Apache Tomcat deployment
docker-compose-template.yml and Dockerfile Docker-based deployment

Preparations

Before starting, make sure you have:

  • {connector_base_url} — The base URL that points to the location where the Jira OSLC Server will be deployed.
    • For example, https://jira-connector.my-organisation.com/
    • Ensure the HTTPS protocol is used with a trusted certificate.
  • {jira_site_url} — The base URL of your Jira site. Typically takes the form https://my-organisation.atlassian.net
  • {jira_cloud_id} — The Cloud ID of your Jira site. Simply make a request to https://my-organisation.atlassian.net/_edge/tenant_info and record the cloudId.

Setup secure access to Atlassian Jira

The Jira Connector accesses the Atlassian Jira API on a user’s behalf using the provided “OAuth 2.0 authorization code grants (3LO)”. See OAuth 2.0 (3LO) apps for details. In particular, follow the Enabling OAuth 2.0 (3LO) instructions.

  1. From any page on https://developer.atlassian.com/, select your profile icon in the top-right corner, and from the dropdown, select Developer console.
  2. Create an app which will be used to obtain API credentials for the Jira Connector
    1. Select Create from the right corner, and then OAuth 2.0 integration
    2. Give your app a meaningful name such as “Lynxwork JIRA Connector”
  3. Under the created app settings, select Authorization in the left menu.
  4. Configure Authorisation
    1. Next to OAuth 2.0 (3LO), select Configure.
    2. Under Callback URL, enter the URL {connector_base_url}/oslc/oauth2/callback
  5. Configure Permissions
    1. Select Permissions in the left menu.
    2. Next to Jira API, select Add, then select Configure
    3. Under Classic scopes, select Edit Scopes for the “Jira platform REST API” scope
    4. Check the box View Jira issue data
    5. Check the box Create and manage issues
    6. Press Save
    7. Under Granular scopes, select Edit Scopes
    8. Check the box Allows the user to read data from Forge apps for Jira (Towards the end, or search for read:forge-app:jira)
    9. Press Save
    10. Select Permissions in the left menu again
    11. Select Add Marketplace or custom app
    12. Under Select the Marketplace or custom app, select the Lynxwork Jira OSLC Client extension.
    13. Under Select the scopes, select read:lynxwork-oslc-client-settings:custom
    14. Press Add, then press Close
    15. Check that you have 4 scopes in total
      1. 3 under the Jira API
      2. 1 under the Lynxwork Jira OSLC Client
  6. Select Settings, and make a record of the following parameters:
    1. Client ID - We refer to this value as {client_id}
    2. Secret - We refer to this value as {client_secret}
  7. Click Save changes

Deploy within a Docker container

  1. Install Docker Engine from the Docker website.
  2. Create a deployment directory of your choice (e.g. /opt/jiraconnector on Linux, or C:\jiraconnector on Windows) and copy the provided files into it:
    • jira.war
    • Dockerfile
    • docker-compose-template.yml
  3. Rename docker-compose-template.yml to docker-compose.yml in that deployment directory.
  4. Copy the license file into a suitable location. For example, copy it alongside docker-compose.yml making the setup self-contained. Update the corresponding volume mapping in docker-compose.yml: /opt/jiraconnector/lynxwork.lic:/var/lib/jetty/lynxwork.lic
  5. Create an oauth subfolder in a suitable location. For example, alongside docker-compose.yml. Update the corresponding volume mapping in docker-compose.yml: /opt/jiraconnector/oauth:/var/lib/jetty/oauth
  6. Edit docker-compose.yml and replace all remaining values enclosed in {} with the appropriate configuration values for your environment.
  7. Run the Connector from the deployment directory: docker compose up -d
  8. Access the application at {connector_base_url}.

Deploy in Apache Tomcat

  1. Install Java 21 JDK from Adoptium.
  2. Install Tomcat 10 from the Apache Tomcat website. We refer to the Tomcat installation directory as <TOMCAT_HOME>.
  3. Copy the jira.war file to Tomcat’s webapps directory, typically located at <TOMCAT_HOME>/webapps/
  4. Copy the provided lynxwork.lic license file to <TOMCAT_HOME>/lynxwork.lic.
  5. Create an oauth folder at <TOMCAT_HOME>/oauth/. Ensure Tomcat has write permissions to this folder.
  6. Copy and rename the provided tomcat-context-template.xml to <TOMCAT_HOME>/conf/Catalina/localhost/jira.xml
  7. Edit the copied context file and replace all values enclosed in {} with the appropriate configuration values for your environment.
  8. Restart Tomcat.
  9. Access the application at {connector_base_url}

Configuring Consumer Applications

The Jira OSLC Server implements the OSLC standard. Connecting to the server from an engineering application is typically done following OSLC’s discovery capabilities. Consult the manual of the consumer application for further configuration details.


Usage Guide

To create traceability links to Jira items, consult your consumer application’s manual for details.