For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect with Jira Data Center

Integrate Harness AIDI with Jira Data Center.

Jira Data Center is the self-managed, enterprise edition of Jira. This page explains how you can integrate Harness Software Engineering Insights with Jira Data Center.

Authenticate with Jira

Before you configure the SEI Jira integration, you must generate an Atlassian API token.

USE A SERVICE ACCOUNT

The user creating the token must have read access to all projects that you want SEI to track, and the user must be able to search issues within the SEI-relevant projects.

Due to the scope of visibility required, consider using a managed service account, rather than a personal user account, to create the token.

  1. Create an Atlassian API token. For instructions, go to the Atlassian documentation on Managing API tokens for your Atlassian account.

  2. Make sure to copy the token somewhere that you can retrieve it when you configure the integration.

If you have enabled an allowlist in your Atlassian account, certain Harness IP addresses must be added to it in order to allow communication between the Harness Platform and Atlassian. If the necessary IPs are not whitelisted, the integration may fail to authenticate or sync data properly.

To ensure your integration can work correctly, refer to the list of Harness Platform IPs that may need to be whitelisted in your firewall.

Add the Jira integration

To integrate Harness SEI with Jira Data Center, choose your Jira type as Jira Data Center.

To connect with the on-prem instances of Jira Software Data Center, you can use the Ingestion Satellite. The configuration process for the integration is similar to setting up the integration in the cloud but instead uses the ingestion satellite to communicate with the Atlassian server.

To set up the integration for the Jira Data Center:

  1. In your Harness Project, go to the SEI Module, and select Account.

  2. Select Integrations under Data Settings.

  3. Select Available Integrations, locate the Jira integration, and select Install.

  4. Select Jira Software Data Center as the integration type.

  5. Choose the Connect via Satellite option.

  6. Define the integration settings:

    • Integration Name: Name for your integration.

    • Description (optional): Add a description for the integration.

    • Tags (optional): Add tags for the integration if required.

  7. Configure the integration settings and authentication:

    • Enter the URL of your Jira On-prem instance, for example, <https://JIRA.ORGANIZATION-DOMAIN>. Ensure it's a valid URL.

    • Select the authentication method. You can choose between Using Jira Personal Access Token (recommended) or Jira Username and Password.

    • If using a personal access token, enter the token.

    • If using a username and password, enter the username and associated password.

  8. Configure advanced integration settings as needed:

    • Select your preferred time zone from the available options.

    • Choose which fields you want to exclude from ingestion.

      You may want to exclude fields containing sensitive information like summary, description, and comments. Excluded fields won't be evaluated for hygiene or best practices compliance.

  9. Once you've configured the integration, click on Download YAML File to download the satellite.yml file.

Once you have downloaded the satellite.yml file, update it by following the instructions here.

Here’s a sample satellite.yml file which uses username and password for authentication.

Here’s a sample satellite.yml file which uses a Personal Access Token for authentication.

The timezone field within the metadata should be in the Atlassian standard version.

To find the correct timezone, go to https://<ORGANIZATION_ATLASSIAN_URL>/rest/api/2/myself.

To set up the integration for the cloud instance of Jira Data Center, follow the steps below:

  1. In your Harness Project, go to the SEI Module, and select Account.

  2. Select Integrations under Data Settings.

  3. Select Available Integrations, locate the Jira integration, and select Install.

  4. Select Jira Software Data Center as the integration type.

  5. Choose the Connect via Cloud option.

  6. Define the integration settings:

    • Integration Name: Name for your integration.

    • Description (optional): Add a description for the integration.

    • Tags (optional): Add tags for the integration if required.

  7. Configure the integration settings and authentication:

    • Enter the URL of your Jira On-prem instance, for example, <https://JIRA.ORGANIZATION-DOMAIN>. Ensure it's a valid URL.

    • Select the authentication method. You can choose between Using Jira Personal Access Token (recommended) or Jira Username and Password.

    • If using a personal access token, enter the token.

    • If using a username and password, enter the username and associated password.

  8. Configure advanced integration settings as needed:

    • Select your preferred time zone from the available options.

    • Choose which fields you want to exclude from ingestion.

      You may want to exclude fields containing sensitive information like summary, description, and comments. Excluded fields won't be evaluated for hygiene or best practices compliance.

  9. Click on Validate Connection to run the pre-flight checks and validate the connection. Once successful, you'll have the integration set up under the Your Integrations tab.

Troubleshooting

Here are some troubleshooting suggestions for Jira integrations.

  • While using a username and password for authentication if the satellite fails to set up the connection, edit the generated satellite.yml file and use your Jira password as a value for api_key in the YAML and keep the user_name as is.

Test with the following curl command:

  • While using the generated managed token (Bearer token) for authentication leave the user_name blank and use the managed token that you are generating for api_key.

Test with the following curl command:

ADFS-based authentication for JIRA using Satellite

ADFS (Active Directory Federation Services) is a Microsoft service that provides single sign-on authentication to users across multiple applications or systems. When integrating with Jira using ADFS-based authentication via Satellite, specific fields need to be configured in the satellite.yml file.

Update the satellite.yml file:

Remove:

Replace with:

Replace <ADFS_PASSWORD> with the actual password for the specified ADFS username. Ensure the rest of the file remains unchanged.

Field
Description

authentication

This field specifies the authentication method to be used, in this case, ADFS.

adfs_url

The URL of the ADFS server endpoint where authentication requests will be sent.

adfs_client_id

The client identifier or application ID assigned to your application in the ADFS configuration. It uniquely identifies your application to the ADFS server.

adfs_resource

The identifier of the resource for which the access token is being requested. In the context of Jira integration, it specifies the URI of the Jira OAuth API on the ADFS server.

adfs_username

The username used for authentication. This could be a service account or a specific user account authorized to access Jira via ADFS.

adfs_password

The password associated with the specified ADFS username. It is important to keep this information secure.

If you encounter issues with configuring the Ingestion Satellite, refer to the Troubleshooting and FAQs.

See also

Last updated

Was this helpful?