Creating an Atlassian OAuth 2.1 App with Jira Integration
This article demonstrates how to create and configure an OAuth 2.1 application in the Atlassian Developer Console with comprehensive Jira API access. This setup enables developers to build integrations that can read and modify Jira projects, issues, comments, and other work data programmatically.
What This Enables
By following this article, you'll create an application that can:
- Automate Jira workflow management and issue tracking
- Build custom dashboards that aggregate data across multiple Jira projects
- Create integrations between Jira and external systems (CRM, monitoring tools, etc.)
- Develop custom reporting and analytics solutions
- Synchronize project data between Jira and other project management tools
Prerequisites
Before beginning, ensure you have:
- An active Atlassian account with developer privileges
- Access to the Atlassian Developer Console
- Understanding of OAuth 2.1 authentication flow
Configuration Process
1. Access the Developer Console
Navigate to developer.atlassian.com and authenticate with your Atlassian credentials. After you log in, locate the Console section and select My apps from the navigation menu.
2. Initialize Your Application
- From the "My apps" dashboard, select Create.
- When prompted to select an integration type, choose OAuth 2.1 integration.
- Configure the basic application metadata:
- App name: Use a descriptive identifier, such as "Jira Management Gateway"
- Description: Provide a clear explanation of your application's intended functionality
3. Configure Application Settings
After creation, you'll be directed to the application overview page. Record the automatically generated App ID (formatted as a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). This identifier is required for API authentication.
If your application will operate across multiple Atlassian sites, set the Distribution status to "Sharing."
4. Configure OAuth Authorization
In the left navigation panel, select Authorization. Configure the OAuth callback endpoint by entering your application's callback URL in the Callback URL field:
https://auth.aigateway.cequence.ai/v1/outbound/oauth/callback
This endpoint will receive the authorization code during the OAuth flow.
5. Define API Permissions
The authorization configuration requires specific scopes that define your application's access permissions. Add the following scopes to enable comprehensive Jira functionality:
Core Jira Operations
read:jira-work- Enables reading Jira work data including issues, projects, and workflowswrite:jira-work- Allows modification of Jira work items and project data
User Management
read:jira-user- Provides access to user profiles and account information
Project Administration
read:project:jira- Grants read access to project configurations and metadatawrite:project:jira- Enables project creation, modification, and configuration changes
Issue Management
read:issue:jira- Allows reading issue details, status, and metadatawrite:issue:jira- Enables issue creation, updates, and status transitions
Comment System
read:comment:jira- Provides access to issue comments and activity logswrite:comment:jira- Allows adding and modifying issue comments