Issues
Connecting Jira
4 min read
With Jira connected, a repository's issues can come from a Jira project instead of GitLab or
GitHub: the ISSUES section lists the project's issues, "Start work" creates the branch with the key
(feature/PROJ-123-…) and applies the status transition, and the commit carries the key in the
summary.
There's a single connection, and it applies to all repositories. In each repository you enter the project key (see Configuring issues per repository).
- Preferences (Ctrl+,) › Issues › Jira connection group.
- Palette (Ctrl+P): "Preferences: issues (Jira, branch name template, commit reference)".
- Create the token in Jira:
- Jira Cloud: at id.atlassian.com › Security › API tokens;
- Jira Server or Data Center: in your Jira profile › Personal Access Tokens.
- In Preferences › Issues › Jira connection, enter the Jira URL: the home page (for
example,
https://empresa.atlassian.net). On Server/Data Center, include the path, if any (for example,https://jira.exemplo.com/jira). - In Type, choose Jira Cloud (atlassian.net) or Jira Server or Data Center.
- Fill in the credential:
- Cloud: Email (the one for your Atlassian account) and API token;
- Server/Data Center: User (optional, only to identify the credential) and Personal Access Token.
- Click Test connection. With the right credential, you see "Connected as Ana Souza." (your name in Jira). The test already saves what changed.
- Or click Save: "Credential saved in the system vault."
- In the repository, enter the project key in Jira project (see Configuring issues per repository).
If you paste a page address (an issue /browse/…, a board), the app keeps only the base URL.
| Option | What it does | Default |
|---|---|---|
| Jira URL | Jira's address, always with https://. It's stored in the app's preferences. | empty |
| Type | Jira Cloud (atlassian.net) or Jira Server or Data Center. Changes the kind of credential requested. | Jira Cloud |
| Email (Cloud) | The email of your Atlassian account. | empty |
| User (Server/Data Center) | Optional: only to identify the credential (the token already says who you are). | empty |
| API token (Cloud) / Personal Access Token (Server/Data Center) | The token, stored in the Windows credential vault. With a token already saved, leave it blank to keep it. | empty |
The token goes into the Windows credential vault, never into a file; only the URL is stored in the app's preferences. The group's notice shows what's saved: "Credential saved for empresa.atlassian.net (Jira Cloud, [email protected])." With no credential for the URL entered, you see "There's no credential saved for https://empresa.atlassian.net (opens another site)."
The token never leaves the vault for the screen, the logs or the error messages.
Caution
Jira is only accessed over https://: the token can't travel unencrypted.
The settings export from Home carries the Jira URL and each repository's issue preferences, but not the Jira token (only the Git servers credentials can go into the file). After importing on a new machine, enter the token again.
- Click Remove.
- Confirm in the Remove the Jira credential dialog ("The Jira user and token for empresa.atlassian.net will be deleted from the system vault.").
- You see "Credential removed from the vault."
The repositories with Jira as their source then show, in the ISSUES section, that the credential is missing.
Nothing. The connection is made through the Jira API, along the same path as the calls to GitLab and GitHub (HTTPS, with a timeout and without following redirects). On Cloud, the app uses the email and the API token; on Server/Data Center, the Personal Access Token. Git isn't used.
Fix the fields and save again, or remove the credential.
- "Enter the Jira URL.": the field is empty.
- "Enter the full Jira URL, starting with https://", "Jira must be accessed over https:// (the token can't travel unencrypted)." and "Invalid Jira URL: use https://": fix the address.
- "Don't put a user name or password in the Jira URL.": remove the
user@or theuser:password@from the address. - "For Jira Cloud, enter the email of your Atlassian account." and "Enter the token.": part of the credential is missing.
- "Jira at empresa.atlassian.net rejected the credential (401). Check the email and API token in Preferences › Issues.": wrong or expired token, or one from another account. On Server/Data Center, the message mentions the Personal Access Token.
- "Jira at empresa.atlassian.net denied access (403). … After several attempts with the wrong credential, Jira may require a CAPTCHA: sign in once through the browser.": sign in through the browser and try again.
- "empresa.atlassian.net responded with a redirect (HTTP 302): check the Jira URL (https and the path, such as /jira).": the URL is incomplete or wrong.
- "the response isn't JSON — is the URL really Jira's?": the address isn't a Jira.
- "Project PROJ doesn't exist in Jira (or you don't have access to it)." and ""proj 1" isn't a valid Jira project key.": check the project key.
- "Issue PROJ-123 doesn't exist in Jira (or you don't have access to it).": the issue referenced in the branch name doesn't exist or isn't visible to you.
- "Jira at empresa.atlassian.net rate-limited the requests. Try again in 30 seconds.": wait and try again.
- "Couldn't find jira.exemplo.com. Check the network (VPN?) and the Jira URL.", "didn't respond within … seconds" and "Couldn't connect to …": network, VPN or Jira down.
- "Windows doesn't trust the certificate of jira.exemplo.com…": install the company's root certificate in "Trusted Root Certification Authorities". See Network and updates.
- "Jira didn't apply the transition: …": the transition was rejected; the detail comes from Jira.
- Preferences › Network: the proxy, also used in the calls to Jira. See Network and updates.
- Company policy:
allowed_serversdoesn't cover Jira. See Administrators.