Jira Cloud
There are two ways to authenticate with Jira Cloud:1. Jira App Authentication
The recommended way to authenticate with Jira Cloud is to install the Qodo app in your Jira Cloud instance. This will allow Qodo to access Jira data on your behalf. Installation steps:Go to the Qodo integrations page.
After installing the app, you will be redirected to the Qodo registration page where you’ll see a success message.
2. Email/Token Authentication
You can create an API token from your Atlassian account:Log in to the API tokens page on Jira.
Jira Data Center/Server
Using Basic Authentication
You can use your Jira username and password to authenticate with Jira Data Center/Server. In your Configuration file/Environment variables/Secrets file, add the following lines:Validating Basic authentication via Python script
If you are facing issues retrieving tickets in Qodo with Basic auth, you can validate the flow using a Python script. The following steps will help you check if the basic auth is working correctly, and if you can access the Jira ticket details:How to link a PR to a Jira ticket
To integrate with Jira, you can link your PR to a ticket using either of these methods:Method 1: Description Reference
Include a ticket reference in your PR description, using either the complete URL formathttps://<JIRA_ORG>.atlassian.net/browse/ISSUE-123 or the shortened ticket ID ISSUE-123 (without prefix or suffix for the shortened ID).
Method 2: Branch Name Detection
Name your branch with the ticket ID as a prefix (e.g.,ISSUE-123-feature-description or ISSUE-123/feature-description).
Jira Base URL
For shortened ticket IDs or branch detection (method 2 for JIRA cloud), you must configure the Jira base URL in your configuration file under the[jira] section:
<JIRA_ORG> is your Jira organization identifier (e.g., mycompany for https://mycompany.atlassian.net).
Multi-JIRA server configuration
Qodo supports connecting to multiple JIRA servers using different authentication methods.Email/Token (Basic Auth)
Configure multiple servers using Email/Token authentication in your configuration file. Example Configuration:PAT Auth
Configure multiple servers using Personal Access Token authentication in your configuration file. Example Configuration:Jira Cloud App
For Jira Cloud instances using App Authentication:In your configuration file, set the default server for ticket ID resolution:
https://other-team.atlassian.net/browse/TASK-456) will automatically use the correct connected instance.
