/
Connect Jira to QMetry Using OAuth

Connect Jira to QMetry Using OAuth

Introduction

OAuth 2.0 authentication is supported for Jira Cloud and Jira Server/Data Center (DC) integrations to ensure secure connectivity between QMetry and Jira.

Steps for Jira Administrator to Configure OAuth

Prerequisites for Enabling OAuth Authentication

Before enabling OAuth, ensure the following steps are completed:

  1. Install and configure the QMetry Jira Integration App: The app must be installed and properly configured to enable OAuth authentication. Refer Install & Configure QMetry's Jira Integration App.

  2. Active Jira Instance
    Your Jira instance should be in an active status for a successful integration.

  3. Required Permissions

    • In QMetry: Users must have "Modify" rights for Integration system.

    • In Jira: Users must have administrative permissions to configure the integration.

Configure Jira Cloud to Use OAuth

Watch Video Tutorial

JIRA Configuration Video for OAuth.mp4

Here are the steps to Configure OAuth 2.0 for QMetry Jira Integration:

  1. Log in to the Atlassian Developer Console
    Access the Atlassian Developer Console at Developer console with admin credentials.

image-20241015-102512.png
  1. Create OAuth 2.0 Integration

    • Navigate to My apps and click Create.

    • Select OAuth 2.0 Integration from the options.

    • On the form, provide name of the integration and click Create.

image-20241015-102543.png
image-20241015-102753.png

 

  1. Configure Authorization

image-20241015-104142.png

 

  1. Set Permissions

    • Go to the Permissions tab.

    • Add and configure Jira API.

    • Under Classic Scopes, ensure the following scopes are selected

      • read:jira-work

      • read:jira-user

      • write:jira-work

image-20241015-104909.png
  1. Configure Distribution

    • Click on the Distribution tab and select Edit.

    • Set the Distribution Status to Sharing.

    • Provide Vendor Name as "QMetry"

    • Set the Privacy Policy URL to: Privacy Policy & Security Statement

    • Click Save Changes.

image-20241015-105230.png
  1. Retrieve Client ID and Client Secret

    • Under Settings, locate the Authentication details section.

    • Copy the Client ID and Client Secret for future use.
      Under Authentication details, copy the values of Client ID and Client Secret

image-20241015-105337.png

Configure Data Center Jira version

Steps for Administrator to Configure OAuth

Prerequisites for Enabling OAuth Authentication

Before enabling OAuth, ensure the following steps are completed:

  1. Install and configure the QMetry Jira Integration App: The app must be installed and properly configured to enable OAuth authentication. Refer Install & Configure QMetry's Jira Integration App

  2. Active Jira Instance
    Your Jira instance should be in an active status for a successful integration.

  3. Required Permissions

    • In QMetry: Users must have "Modify" rights for Integration system.

    • In Jira: Users must have administrative permissions to configure the integration.

    • For Oauth2, Jira 8.22 or above version supported

Configure Jira Server to Use OAuth

Here are the steps to configure an application link in the Jira Server Data Center:

  1. In Jira, navigate to ⚙ > Application

image-20241017-075658.png

 

  1. Navigate to Application Links (under Integrations) and click Create Link.

image-20241017-075749.png
  1. In the Create Link pop-up, select External Application as the application type and set the Direction to Incoming.

image-20241016-121100.png

 

  1. Configure the link properties as follows:

image-20241017-075858.png
  1. Upon saving, you will receive the OAuth 2.0 credentials required for integration with QMetry, including:

    • Client ID

    • Client Secret

image-20241017-080014.png

The rest of the content for “Configure Connection in QMetry” will remain same as cloud version. So, the follow will remain the same as above.

Configure Connection in QMetry

  1. Log in to your QMetry instance as a user with “Modify" rights for Integration system.

  2. Go to Integrations

image-20241015-124510.png

You can apply filter on the Jira Instance URLs to quickly assess your Jira instance.

  1. Enable OAuth Settings by clicking on the toggle button. This shall open the OAuth configuration pop-up window.

  2. Enter the Client ID and Client Secret Key from Jira app settings and click on Next.

image-20241025-105941.png
  1. The next pop-up prompts you to connect your Jira Account. Click on the link given in Step 1

image-20241015-124839.png
  1. Clicking on the link will re-direct you to the callback URL that you provided under Jira Authorization. Select your Jira instance from “Use app on” and click on Accept

image-20241015-124850.png
  1. Accepting the access request shall generate a unique verification code.

image-20241025-105712.png
  1. Copy the verification code by clicking on the copy icon and paste it in the textbox in Step 2 and click on Configure

image-20241025-105748.png

Check OAuth History

To check OAuth History

Click on the log icon as shown in the image below.

image-20241022-163314.png

Update OAuth Configurations

To update OAuth Configurations

  1. Click on the wrench icon as highlighted in the image below.

  2. This shall navigate you to the Update OAuth Configuration pop-up window.

  3. Repeat steps 4 to 8 as mentioned in the “Configure Connection in QMetry” section.

image-20241025-105823.png

Steps for End-User for Authenticating using OAuth

To create new issues from the Issue Module or link issues from the Test Suite (Default or Detail View), the end user must complete OAuth authentication. Follow these steps to authenticate:

This completes the OAuth setup for issue creation or linking.

  1. Select the appropriate Jira instance.

    • If the selected Jira instance has OAuth authentication enabled and configured, a prompt will appear for a verification code to authenticate the Jira connection.

image-20241016-114418.png
  1. Click on the link provided in step 1.

image-20241016-115404.png

 

  1. This will redirect you to the callback URL for access request. Select Accept to generate the verification code.

image-20241016-115204.png
  1. Copy the verification code and paste it into the required field in step 2.

image-20241025-110049.png
  1. Click Authenticate to finalize the OAuth authentication process.

image-20241016-115547.png

Related content