Creating an OAuth 2.0 (3LO) app
1
Create an Atlassian developer account
If you don’t already have one, sign up for an Atlassian developer account.
2
Create a new OAuth 2.0 (3LO) app
- Go to the Atlassian Developer Console.
- Click Create and select OAuth 2.0 integration.
- Enter a name, agree to Atlassian’s developer terms by checking the agreement checkbox for your app and click Create.
- Your app will be created and you’ll be taken to the app management page.
3
Configure OAuth 2.0 (3LO)
- In the left sidebar, select Authorization.
- Next to OAuth 2.0 (3LO), click Add.
- Enter
https://api.nango.dev/oauth/callbackas the Callback URL. - Click Save Changes to save your changes.
4
Add API permissions
- In the left sidebar, select Permissions.
- Find the Jira API and click Add, and then click Configure.
- Click Edit Scopes then select the scopes your application requires.
- Click Save to save your changes.
Refreshing tokens requires the
offline_access scope. Make sure to include it when configuring your integration in Nango.5
Obtain your client credentials
- In the left sidebar, select Settings.
- Note your Client ID.
- Copy both the Client ID and Secret by clicking the copy buttons next to them, as you’ll need them when configuring your integration in Nango.
6
Make your app available to users
- In the left sidebar, select Distribution.
- In Distribution controls, click the Edit button, select the Sharing radio button, enter a Privacy Policy URL and then click the Save changes button.
By default, your app is private and can only be used by you. Making it public allows other users to authorize your app. Learn more about distributing OAuth 2.0 apps.
7
Next
Follow the Quickstart.
Understanding Jira’s connection model
When connecting to Jira, you have two options for specifying which Jira site to connect to:- Provide a
Subdomainduring connection creation (recommended): This ensures your users connect to a specific Jira site. - Let Nango auto-select the first available site (legacy behavior): If no
Subdomainis specified, Nango will use the first site from the accessible resources API.
A single Jira OAuth token can be valid for multiple Atlassian sites. Specifying the
Subdomain during connection creation is important if you need to connect to a specific site.Making API requests
ThecloudId is required to make API requests to the Jira API v3. Nango handles getting this automatically by matching it to your specified subdomain if provided, or by selecting the first available site if it is not. Learn more about making API requests with Jira and Nango.
Important notes
- Token expiration: Refresh tokens will expire after 365 days of non-use and will expire within 90 days if the resource owner is inactive for 90 days. For more details, see Atlassian’s documentation on access token management.
- User permissions: When making API calls, remember that the permissions of the user who authorized your app will limit what your app can do, regardless of the scopes you’ve requested.
- API versions: The Jira REST API has different versions (v2 and v3). Make sure you’re using the correct version for your needs.