AMP Bug Tracker Plugin: Configuring an Application Link to Jira

  • Updated

Creating the Public and Private Keys

Application Links in Jira use a public/private key to sign requests from the client application (AMP). Follow the instructions provided by Atlassian for creating the private and public keys. These will be needed to set up the Jira application link in the next step, as well as in the organization configuration in AMP. A summary of these steps is provided below:

  1. Open the terminal and CD to the directory where you wish to save the private and public key files. 
  2. Enter 
    openssl genrsa -out jira_privatekey.pem 1024
  3. When prompted enter the following: 
    openssl req -newkey rsa:1024 -x509 -key jira_privatekey.pem -out jira_publickey.cer -days 365
  4.  When this line is run you will be prompted for some information such as your country and your email address. The only part that is important is the value entered for:

    Common Name (eg, fully qualified host name) []:

    Please enter the fully qualified domain name for your AMP instance.

  5. Enter the following:
    openssl pkcs8 -topk8 -nocrypt -in jira_privatekey.pem -out jira_privatekey.pcks8
  6. Finally, enter the following in the terminal:
    openssl x509 -pubkey -noout -in jira_publickey.cer  > jira_publickey.pem
  7. On your desktop file system, navigate to the directory selected to save the files. There should be four files, including the following two files which will be used to setup the application link and configure the AMP organization connection to Jira: 
    1. jira_privatekey.pem
    2. jira_publickey.pem

Jira Application Link

Jira requires users to configure an application link to any applications they wish to integrate with the Jira instance. In order to use AMP for Jira, a Jira system administrator must configure an application link for AMP and share relevant information with the AMP admin who is configuring the integration. Atlassian provides documentation for creating Application Links here

 Level Access provides a summary of these steps below (NOTE: Wording could be different depending on your version of JIRA, as internally-hosted instances may be on older versions.  Step 4 especially, can have variability, specifically with regard to using 'Application Name'/'Application Type' vs 'Consumer Name'/'Consumer Key'):

      1. Login to the JIRA instance as a user who administrator access.
      2. Choose the gear icon in the upper right.
        Jira Left Hand Nav Gear Icon Screenshot
      3. Select the “System” option from the submenu.
      4. Reenter your admin credentials if prompted.
      5. Choose the “Applications” tab on the resulting page.
        Jira Application Link Header Nav Screenshot
      6. Select “Application Links” from the left-hand navigation.
        Jira Left Hand Nav ApplicationLink
      7. Enter you AMP instance’s URL in the Configure Application Links for on the resulting page.Jira Configure Application Links
      8. Press “Continue” if a “No response was received” warning is shown. This warning can be disregarded in the AMP/JIRA configuration process.Jira Configure Application URL Screenshot
      9. Ensure the “Create incoming link” checkbox is checked and enter the AMP application name on the following screen. The other fields are optional for AMP integration.Jira Link Applications Configuration Screen
      1. Enter values for the “Consumer Key” and “Consumer Name”. These can be any values, but we have used the FQDN for the AMP instance. Copy the contents of the jira_publickey.pem file into the “Public Key” field.Jira Link Applications Public Key Screenshot
      2. Press the “Continue” button.
      3. You will be redirected to the “Configure Application Links” page with the newly created Application Link listed.Jira Configure Application Link COnfirmation Screenshot

Was this article helpful?

2 out of 4 found this helpful

Have more questions? Submit a request