Connect Jira to Using OAuth

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

Pre-requisites for Enabling OAuth Authentication

  1. Install and configure Jira Integration App.

  2. The Jira instance should be in an active status.

  3. Required Permissions

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

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

  4. For Jira 8.22 or above version is supported for OAuth 2.0.

Configure Jira Cloud to Use OAuth

To Configure OAuth 2.0, perform the following steps:

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

  2. Go to My apps.

    QPro_Integration_Jira_Atlassian_Dev_Console.png
  3. Click Create and select OAuth 2.0 Integration.

    QPro_Integration_Jira_OAuth_2.0
  4. Enter the name of the integration and click Create.

  5. Next, go to Authorization tab, under Actions, click Add.

    QPro_Integration_Jira_OAuth_Authorization
  6. In the Callback URL field, enter {QTM-Instance-URL}/rest/integration/oauth2/callbackUrl.

  7. Click Save Changes.

  8. 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

        QPro_Integration_OAuth_Authorization.png
  9. 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

    • Click Save Changes.

  10. 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

      QPro_Intration_Jira_OAuth_ClientIDandCode.png

Configure Data Center Jira version

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

  1. Login to Jira, go to Settings and select Application.

  2. Go to Application Links and click Create Link.

  3. Select External Application as the Application Type and set the Direction to Incoming.

  4. Configure the link properties as follows:

  5. OAuth 2.0 credentials are generated. Copy the following:

    • Client ID

    • Client Secret

The rest of the steps remain same as cloud version.

Configure Connection in

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

  2. Go to Integrations.

    QPro_Interations_Jira
  3. Enable OAuth Settings by clicking on the toggle button.

  4. Enter the Client ID and Client Secret Key from Jira app settings. Click Next.

  5. Connect Jira Account by clicking the link.

    QPro_Jira_Integrations_Authenticate_Using_OAuth.png
  6. Select your Jira instance from Use app on and click Accept.

  7. Accepting the access request generates a unique verification code.

  8. Copy the verification code and paste it in the textbox and click Configure.

Check OAuth History

To check OAuth history, perform the following steps:

  1. Go to Integrations.

  2. Under OAuth Settings click OAuth History icon.

    QPro_Jira_Integration_OAuthHistory.png

Update OAuth Configurations

To update OAuth Configurations, perform the following steps:

  1. Go to Integrations.

  2. Click the wrench icon.

  3. Reconfigure the connection.

End-User using OAuth

Complete OAuth authentication to create new issues from the Issue Module or link issues from Test Suite.

To authenticate using OAuth, perform the following steps:

  1. Select the appropriate Jira instance.

  2. Enter the verification code to authenticate the Jira connection.

    QPro_Integrations_Jira_OAuth_Verification_Code
  3. Click the link.

    QPro_Integrations_Jira_OAuth_Authenticate
  4. Select Accept to generate the verification code.

  5. Copy the verification code and paste it in step 2.

  6. Click Authenticate to complete the OAuth authentication process.

Publication date: